[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Ways of overriding KConfigured stuff



On Tuesday 10 October 2006 18:23, Loïc Minier wrote:
>         Hi there,
>         > 
>  I'm preparing desktop-base with the Etch artwork. [0]   I would like
>  the desktop-base package to hold as many artwork types as possible for
>  the various desktop environments, and to override the per desktop
>  environment defaults when installed.
>
>  The current problem I'm facing is: how do I override the kdesktoprc
>  Wallpaper and its friends settings cleanly?

Any setting in a kdesktoprc file in the search path will be used, the first 
value "wins" unless this has been restricted by the administrator through 
marking the key, group or file as "immutable"

The search path can be checked by
$ kde-config --path config

processing order is from left to right

>  I would like your opinion on the best way for desktop-base to set the
>  default Wallpaper for the Etch timeframe, and only the default (users
>  may still change wallpaper afterwards).

As I see it either by installing a default kdesktoprc in /etc/kde3 or by 
including a default in /etc/skel/.kde/share/config

>  It seems to me that KDE uses the "KConfig" mechanism which relies on
>  "KStandardDirs" to build the list of directories to search per file
>  type. [1]
>    Some environment variables (KDEDIRS, and XDG_CONFIG_DIRS) are
>  included in the list of directories to search, but there's no interface
>  for a package maintainer to set these vars cleanly.

These variables are not set on Debian, i.e. their defaults are used.
Since they are system wide variables, I guess changing them by a package 
maintainer is similar to changing any other such variable in Debian.

Additionally KDE's environment can be augmented by putting files into the env/ 
directory at any level of the search path.
Only requirement is that they have ".sh" as their extension, but since they 
are sourced by startkde they do not have to be executable themselves.

I use this locally to extend the resource path to include /usr/local as a 
preferred prefix:

kevin@artemis ~ % ll /usr/env
insgesamt 4
-rw-r--r-- 1 root root 31 2006-07-08 18:22 10-kdedirs.sh
kevin@artemis ~ % cat /usr/env/10-kdedirs.sh
export KDEDIRS=/usr/local:/usr

Further information about all this here[1] and here[2]

Cheers,
Kevin

[1] http://www.kde.org/areas/sysadmin/
[2] 
http://docs.kde.org/stable/en/kdebase/userguide/kde-for-administrators.html

-- 
Kevin Krammer, KDE developer
KDE user support, developer mentoring

Attachment: pgpXYjJS2hadX.pgp
Description: PGP signature


Reply to: