diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-09-09 06:22:18 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-09-09 06:22:18 +0000 |
commit | 366811c87def3c7cf8a1fefa235833226080d776 (patch) | |
tree | 4a8016eadc402914825ec0c860371993e7c168db /startkde | |
parent | 579cae43096d461bfcd5709aa2d5f37963096952 (diff) | |
download | tdebase-366811c87def3c7cf8a1fefa235833226080d776.tar.gz tdebase-366811c87def3c7cf8a1fefa235833226080d776.zip |
* Synchronized default wallpaper across kdm, kdmtheme, and first login session.
* Removed Kubuntu-specific gtk engine startup and replaced with generic gtk engine startup
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1173274 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'startkde')
-rw-r--r-- | startkde | 26 |
1 files changed, 22 insertions, 4 deletions
@@ -90,6 +90,15 @@ if test $? -ne 0; then fi . $kdehome/share/config/startupconfig +# Make sure default wallpaper is set +if [ ! -e $kdehome/share/config/kdesktoprc ]; then +cat >$kdehome/share/config/kdesktoprc <<EOF +[Desktop0] +Wallpaper=stripes.jpg +WallpaperMode=Scaled +EOF +fi + # XCursor mouse theme needs to be applied here to work even for kded or ksmserver if test -n "$kcminputrc_mouse_cursortheme" -o -n "$kcminputrc_mouse_cursorsize" ; then kapplymousetheme "$kcminputrc_mouse_cursortheme" "$kcminputrc_mouse_cursorsize" @@ -176,16 +185,25 @@ fi # configuration of the gtk_qt_engine if not already set -if [ ! -e $kdehome/env/gtk-qt-engine.rc.sh ] && [ -e /usr/share/kubuntu-default-settings/gtk-qt-engine.rc.sh ] +if test -n "$KDEDIRS"; then + kdedirs_first=`echo "$KDEDIRS"|sed -e 's/:.*//'` + KGTK_RC_ENGINE=$kdedirs_first/share/kgtk/gtk-qt-engine.rc.sh + KGTK_RC_KDE=$kdedirs_first/share/kgtk/.gtkrc-2.0-kde +else + KGTK_RC_ENGINE=$KDEDIR/share/kgtk/gtk-qt-engine.rc.sh + KGTK_RC_KDE=$KDEDIR/share/kgtk/.gtkrc-2.0-kde +fi + +if [ ! -e $kdehome/env/gtk-qt-engine.rc.sh ] && [ -e $KGTK_RC_ENGINE ] then mkdir -p $kdehome/env - cp -f /usr/share/kubuntu-default-settings/gtk-qt-engine.rc.sh $kdehome/env + cp -f $KGTK_RC_ENGINE $kdehome/env chmod 755 $kdehome/env/gtk-qt-engine.rc.sh fi -if [ ! -e $HOME/.gtkrc-2.0-kde ] && [ -e /usr/share/kubuntu-default-settings/.gtkrc-2.0-kde ] +if [ ! -e $HOME/.gtkrc-2.0-kde ] && [ -e $KGTK_RC_KDE ] then - cp -f /usr/share/kubuntu-default-settings/.gtkrc-2.0-kde $HOME + cp -f $KGTK_RC_KDE $HOME fi # Source scripts found in <localprefix>/env/*.sh and <prefixes>/env/*.sh |