@ -24,17 +24,17 @@ for its applications. Resources range from icons, wallpapers, fonts to
sounds, menu-descriptions and configuration files.
In KDE1 there were two locations were resources could be located: The
resources provided by the system were located under $K DEDIR and user-
resources provided by the system were located under $T DEDIR and user-
specific resources were located under $HOME/.kde.
In KDE2 resource management has been largely abstracted by the introduction
of the KStandardDirs class and has become much more flexible. The user /
administrator can now specify a variable number of locations where resources
can be found. A list of locations can either be specified via $K DEDIRS
can be found. A list of locations can either be specified via $T DEDIRS
(notice the extra 'S'), via /etc/kderc and even via the kdeglobals config
file. The location where user-specific resources can be found can be
set with $K DEHOME (The default is $HOME/.kde). Changes made by the user
are always written back to $K DEHOME.
set with $T DEHOME (The default is $HOME/.kde). Changes made by the user
are always written back to $T DEHOME.
Both KDE1 and KDE2 feature so called "cascading configuration files": There
can be multiple configuration files with the same name in the various
@ -42,29 +42,29 @@ locations for (config) resources, when that is the case, the information of
all these configuration files is combined on a key by key basis. If the same
key (within a certain group) is defined in more than one place, the value
of the key for the config file that was read last will override any previously
read values. Configuration files under $K DEHOME are always read last. This
read values. Configuration files under $T DEHOME are always read last. This
ensures that after a configuration entry is written, the same value wil be
read back.
In KDE3 two important changes have been made:
* Default values are no longer written.
When a configuration file in a location other than $K DEHOME defines a value
When a configuration file in a location other than $T DEHOME defines a value
for a key and the application subsequently writes out a new configuration file
to $K DEHOME, that configuration file will only contain an entry for the key
to $T DEHOME, that configuration file will only contain an entry for the key
if its value differs from the value read from the other file.
This counters the problem that changing default configuration files under
$K DEDIR would not take effect for users, since these users would most likely
have their own copy of these settings under $K DEHOME. KDE3 will make sure
not to copy these settings so changes made under $K DEDIR will affect all users
$T DEDIR would not take effect for users, since these users would most likely
have their own copy of these settings under $T DEHOME. KDE3 will make sure
not to copy these settings so changes made under $T DEDIR will affect all users
that haven't explicitly changed the affected settings to something else.
* Configuration entries can be marked "immutable".
Starting with KDE3, configuration entries can be marked "immutable". When a
configuration entry is immutable it means that configuration files that are
read later will not be able to override its value. Immutable entries cannot
be changed via KConfig and if the entry is present under $K DEHOME it will
be changed via KConfig and if the entry is present under $T DEHOME it will
be ignored.
Entries can be marked immutable on 4 different levels:
@ -383,8 +383,8 @@ shell_access
option (Alt-F2) can be used to run shell-commands and arbitrary
executables. Likewise, executables placed in the user's
Autostart folder will no longer be executed. Applications can
still be autostarted by placing .desktop files in the $K DEHOME/Autostart
or $K DEDIR/share/autostart directory.
still be autostarted by placing .desktop files in the $T DEHOME/Autostart
or $T DEDIR/share/autostart directory.
See also run_desktop_files.
custom_config
@ -416,13 +416,13 @@ run_desktop_files
part of the default desktop, KDE menu, registered services and
autostarting services.
* The default desktop includes the files under
$K DEDIR/share/kdesktop/Desktop but _NOT_ the files under
$T DEDIR/share/kdesktop/Desktop but _NOT_ the files under
$HOME/Desktop.
* The KDE menu includes all files under $K DEDIR/share/applnk and
* The KDE menu includes all files under $T DEDIR/share/applnk and
$XDGDIR/applications
* Registered services includes all files under $K DEDIR/share/services.
* Autostarting services include all files under $K DEDIR/share/autostart
but _NOT_ the files under $K DEHOME/Autostart
* Registered services includes all files under $T DEDIR/share/services.
* Autostarting services include all files under $T DEDIR/share/autostart
but _NOT_ the files under $T DEHOME/Autostart
You probably also want to activate the following resource
restictions:
@ -432,7 +432,7 @@ run_desktop_files
"services" - To restrict registered services.
"autostart" - To restrict autostarting services.
Otherwise users can still execute .desktop files by placing them
in e.g. $K DEHOME/share/kdesktop/Desktop
in e.g. $T DEHOME/share/kdesktop/Desktop
lineedit_text_completion
- defines whether input lines should have the potential to remember
@ -553,14 +553,14 @@ Some remarks:
KDE3 Resource Restrictions
==========================
Most KDE applications make use of additional resource files that are typically
located in directories under $K DEDIR/share. By default KDE allows users to
located in directories under $T DEDIR/share. By default KDE allows users to
override any of these resources by placing files in the same location
under $K DEHOME/share. For example, Konsole stores profiles under
$K DEDIR/share/apps/konsole and users can add additional profiles by
installing files in $K DEHOME/share/apps/konsole.
under $T DEHOME/share. For example, Konsole stores profiles under
$T DEDIR/share/apps/konsole and users can add additional profiles by
installing files in $T DEHOME/share/apps/konsole.
KDE3 Resource Restrictions make it possible to restrict the lookup of files
to directories outside of $K DEHOME only.
to directories outside of $T DEHOME only.
The following resources are defined:
@ -589,7 +589,7 @@ data_<appname> - covers the sub section for <appname> in the data resource.
To restrict resources the kdeglobals file should contain the
group "[KDE Resource Restrictions]", each resource can then be restricted by
adding "<resource>=false". E.g. to restrict the "wallpaper" resource to
$K DEDIR/share/wallpapers one would add:
$T DEDIR/share/wallpapers one would add:
[KDE Resource Restrictions][$i]
wallpaper=false