Pages
User Documentation
On this page

Changing the default settings

There are three basic reasons to change default settings:

  • You're a system administrator with new users every day, and you want them to have settings that aren't the default.
  • You're a system administrator and want to change the desktop or system settings of all your users, and logging in as each of them to use System Settings isn't an option.
  • You have several SonicDE machines, perhaps a computer at work behind a proxy, one at home and some virtual machines for testing. You set up computers often and want your settings rolled out identically.

In each case, you need to change settings files in ~/.config, or the system-wide ones in /etc/xdg. See Configuration files.

/etc/skel

When a new user is created, the contents of /etc/skel are copied to their home folder. To change the settings for all future users, change the files in /etc/skel.

Example

To change the default browser, you'd normally use the Default Applications module. Sometimes you can't open System Settings, though. This script changes the default browser to Firefox instead:

#!/bin/bash
# Set the default browser to Firefox.
kwriteconfig6 --file kdeglobals --group General --key 'BrowserApplication[$e]' '!firefox'

Adapted for SonicDE from userbase.kde.org/Tutorials/Modify_KDE_Software_Defaults by KDE UserBase contributors, licensed under CC BY-SA 4.0.

Edit this page on GitHub

We use cookies to personalize content and to analyze our traffic. Please decide if you are willing to accept cookies from our website.