Bug#277918: KPersonalizer should honour /etc/kde3/kpersonalizerrc
Package: ksmserver
Version: 4:3.2.2-1
Severity: normal
Tags: patch
Using this patch it's possible to disable globally the appearance of
KPersonalizer on first login. It has been tested on KDE 3.2 (testing)
and KDE 3.3 (unstable). It uses /etc/kde3/kpersonalizerrc to be
consistent with other KDE programs.
Regards
Konstantinos
-- System Information:
Debian Release: 3.1
APT prefers testing
APT policy: (500, 'testing')
Architecture: powerpc (ppc)
Kernel: Linux 2.6.8-pegasos
Locale: LANG=el_GR.UTF-8, LC_CTYPE=el_GR.UTF-8
Versions of packages ksmserver depends on:
ii kdelibs4 4:3.2.3-2 KDE core libraries
ii libart-2.0-2 2.3.16-6 Library of functions for 2D graphi
ii libc6 2.3.2.ds1-18 GNU C Library: Shared libraries an
ii libgcc1 1:3.4.2-2 GCC support library
ii libice6 4.3.0.dfsg.1-8 Inter-Client Exchange library
ii libpng12-0 1.2.5.0-8 PNG library - runtime
ii libqt3c102-mt 3:3.3.3-4.1 Qt GUI Library (Threaded runtime v
ii libsm6 4.3.0.dfsg.1-8 X Window System Session Management
ii libstdc++5 1:3.3.4-13 The GNU Standard C++ Library v3
ii libx11-6 4.3.0.dfsg.1-8 X Window System protocol client li
ii libxext6 4.3.0.dfsg.1-8 X Window System miscellaneous exte
ii libxrender1 0.8.3-7 X Rendering Extension client libra
ii xlibs 4.3.0.dfsg.1-8 X Window System client libraries m
ii zlib1g 1:1.2.2-1 compression library - runtime
-- no debconf information
--- startkde.orig 2004-10-23 14:55:20.585946288 +0300
+++ startkde 2004-10-23 14:53:04.861579528 +0300
@@ -141,7 +141,24 @@
echo 'startkde: Starting up...' 1>&2
# run KPersonalizer before the session, if this is the first login
-if kreadconfig --file kpersonalizerrc --group General --key FirstLogin --default true --type bool; then
+# and _only_ if /etc/kde3/kpersonalizer does not exist or if it defines
+# FirstLogin as true. if FirstLogin is false, don't run KPersonalizer.
+
+if kreadconfig --file /etc/kde3/kpersonalizerrc --group General --key FirstLogin --default true --type bool ; then
+ start_kpersonalizer=true
+else
+ start_kpersonalizer=false
+fi
+
+# If we got this far and start_kpersonalizer is true, then we check
+# the user's configuration file
+if [ $start_kpersonalizer = "true" ]; then
+ if kreadconfig --file kpersonalizerrc --group General --key FirstLogin --default true --type bool; then
+ start_kpersonalizer=true
+ fi
+fi
+
+if [ start_kpersonalizer = "true" ]; then
# start only dcopserver, don't start whole kdeinit (takes too long)
echo 'startkde: Running kpersonalizer...' 1>&2
dcopserver
Reply to: