[KDE-India] Workaround: /etc/kde3 overriding profile configs

subbukk subbukk at gmail.com
Tue Dec 19 09:31:52 CET 2006


Hi,

I found a kludgy workaround for Debian/Kubuntu KDE 3.5.x bug that causes 
config settings in /etc/kde3 to override those in profiles.
Briefly, the work around is to move the *rc files into "default" profile's 
config directory and point /etc/kde3/system.kdeglobals to the profile 
location. The patch is kludgy because it doesnt consider package 
upgrades. To verify if each user (say $p) is getting the right config:

 su -c "kde-config --path config" $p

Here is the pseudo-code:
----------------------------------
#!/bin/bash
PROF=/etc/kde-profiles

mkdir -p $PROF/default/share/config
touch $PROF/MAP
chmod a+rx $PROF $PROF/{default,default/share,default/share/config}
/etc/init.d/kdm stop
mv /etc/kde3/{*rc,system.kdeglobals,kdeglobals} $PROF/share/config
writekey="kwriteconfig --file /etc/kde3/system.kdeglobals --group '[Directories]' --key"
$writekey profileDirsPrefix $PROF
$writekey userProfileMapFile $PROF/MAP
ln -s  $PROF/default/share/config /usr/share/config
/etc/init.d/kdm start
---------------------------------

Subbu


More information about the KDE-india mailing list