Author: tgoettlicher
Date: Wed Feb 6 12:19:07 2008
New Revision: 44183
URL: http://svn.opensuse.org/viewcvs/yast?rev=44183&view=rev
Log:
fix
Added:
branches/tmp/tgoettlicher/yast2_2nd_rewrite/ConfigureChecks.cmake
branches/tmp/tgoettlicher/yast2_2nd_rewrite/config-X11.h.cmake
branches/tmp/tgoettlicher/yast2_2nd_rewrite/config-unix.h.cmake
branches/tmp/tgoettlicher/yast2_2nd_rewrite/config-workspace.h.cmake
branches/tmp/tgoettlicher/yast2_2nd_rewrite/startkde.cmake (with props)
Added: branches/tmp/tgoettlicher/yast2_2nd_rewrite/ConfigureChecks.cmake
URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/tgoettlicher/yast2_2nd_rewrite/ConfigureChecks.cmake?rev=44183&view=auto
==============================================================================
--- branches/tmp/tgoettlicher/yast2_2nd_rewrite/ConfigureChecks.cmake (added)
+++ branches/tmp/tgoettlicher/yast2_2nd_rewrite/ConfigureChecks.cmake Wed Feb 6 12:19:07 2008
@@ -0,0 +1,86 @@
+include(UnixAuth)
+include(CheckTypeSize)
+include(FindPkgConfig)
+
+macro_optional_find_package(XKB) # kxkb, kdm
+
+if (PAM_FOUND)
+ set(KDE4_COMMON_PAM_SERVICE "kde" CACHE STRING "The PAM service to use unless overridden for a particular app.")
+
+ macro(define_pam_service APP)
+ string(TOUPPER ${APP}_PAM_SERVICE var)
+ set(cvar KDE4_${var})
+ set(${cvar} "${KDE4_COMMON_PAM_SERVICE}" CACHE STRING "The PAM service for ${APP}.")
+ mark_as_advanced(${cvar})
+ set(${var} "\"${${cvar}}\"")
+ endmacro(define_pam_service)
+
+ macro(install_pam_service APP)
+ string(TOUPPER KDE4_${APP}_PAM_SERVICE cvar)
+ install(CODE "
+set(DESTDIR_VALUE \"\$ENV{DESTDIR}\")
+if (NOT DESTDIR_VALUE)
+ exec_program(\"${CMAKE_SOURCE_DIR}/workspace/mkpamserv\" ARGS ${${cvar}} RETURN_VALUE ret)
+ if (NOT ret)
+ exec_program(\"${CMAKE_SOURCE_DIR}/workspace/mkpamserv\" ARGS -P ${${cvar}}-np)
+ endif (NOT ret)
+endif (NOT DESTDIR_VALUE)
+ ")
+ endmacro(install_pam_service)
+
+ define_pam_service(KDM)
+ define_pam_service(kcheckpass)
+ define_pam_service(kscreensaver)
+
+else (PAM_FOUND)
+
+ macro(install_pam_service APP)
+ endmacro(install_pam_service)
+
+endif (PAM_FOUND)
+
+find_program(some_x_program NAMES iceauth xrdb xterm)
+if (NOT some_x_program)
+ set(some_x_program /usr/bin/xrdb)
+ message("Warning: Could not determine X binary directory. Assuming /usr/bin.")
+endif (NOT some_x_program)
+get_filename_component(proto_xbindir "${some_x_program}" PATH)
+get_filename_component(XBINDIR "${proto_xbindir}" ABSOLUTE)
+get_filename_component(xrootdir "${XBINDIR}" PATH)
+set(XLIBDIR "${xrootdir}/lib/X11")
+
+check_function_exists(getpassphrase HAVE_GETPASSPHRASE)
+check_function_exists(vsyslog HAVE_VSYSLOG)
+check_function_exists(statvfs HAVE_STATVFS)
+
+check_include_files(limits.h HAVE_LIMITS_H)
+check_include_files(sys/time.h HAVE_SYS_TIME_H) # ksmserver, ksplashml, sftp
+check_include_files(stdint.h HAVE_STDINT_H) # kcontrol/kfontinst
+check_include_files("sys/stat.h;sys/vfs.h" HAVE_SYS_VFS_H) # statvfs for plasma/solid
+check_include_files("sys/stat.h;sys/statvfs.h" HAVE_SYS_STATVFS_H) # statvfs for plasma/solid
+check_include_files(sys/param.h HAVE_SYS_PARAM_H)
+check_include_files("sys/param.h;sys/mount.h" HAVE_SYS_MOUNT_H)
+check_include_files("sys/types.h;sys/statfs.h" HAVE_SYS_STATFS_H)
+check_function_exists(statfs HAVE_STATFS)
+macro_bool_to_01(FONTCONFIG_FOUND HAVE_FONTCONFIG) # kcontrol/{fonts,kfontinst}
+macro_bool_to_01(OPENGL_FOUND HAVE_OPENGL) # kwin
+macro_bool_to_01(X11_XShm_FOUND HAVE_XSHM) # kwin, ksplash
+macro_bool_to_01(X11_XTest_FOUND HAVE_XTEST) # khotkeys, kxkb, kdm
+macro_bool_to_01(X11_Xcomposite_FOUND HAVE_XCOMPOSITE) # kicker, kwin
+macro_bool_to_01(X11_Xcursor_FOUND HAVE_XCURSOR) # many uses
+macro_bool_to_01(X11_Xdamage_FOUND HAVE_XDAMAGE) # kwin
+macro_bool_to_01(X11_Xfixes_FOUND HAVE_XFIXES) # klipper, kicker, kwin
+macro_bool_to_01(X11_Xinerama_FOUND HAVE_XINERAMA)
+macro_bool_to_01(X11_Xrandr_FOUND HAVE_XRANDR) # kwin
+macro_bool_to_01(X11_Xrender_FOUND HAVE_XRENDER) # kcontrol/style, kicker
+macro_bool_to_01(X11_xf86misc_FOUND HAVE_XF86MISC) # kdesktop and kcontrol/lock
+macro_bool_to_01(X11_dpms_FOUND HAVE_DPMS) # kdesktop
+macro_bool_to_01(X11_XSync_FOUND HAVE_XSYNC) # kwin
+
+set(CMAKE_EXTRA_INCLUDE_FILES sys/socket.h)
+check_type_size("struct ucred" STRUCT_UCRED) # kio_fonts
+
+check_function_exists(getpeereid HAVE_GETPEEREID) # kdesu
+
+pkg_check_modules (XRANDR_1_2 xrandr>=1.2)
+macro_bool_to_01(XRANDR_1_2_FOUND HAS_RANDR_1_2)
Added: branches/tmp/tgoettlicher/yast2_2nd_rewrite/config-X11.h.cmake
URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/tgoettlicher/yast2_2nd_rewrite/config-X11.h.cmake?rev=44183&view=auto
==============================================================================
--- branches/tmp/tgoettlicher/yast2_2nd_rewrite/config-X11.h.cmake (added)
+++ branches/tmp/tgoettlicher/yast2_2nd_rewrite/config-X11.h.cmake Wed Feb 6 12:19:07 2008
@@ -0,0 +1,38 @@
+/* Define if you have the XRandR extension */
+#cmakedefine HAVE_XRANDR 1
+
+/* Define if you have the XDamage extension */
+#cmakedefine HAVE_XDAMAGE 1
+
+/* Define if you have the XKB extension */
+#cmakedefine HAVE_XKB 1
+
+/* Define if you have the Xinerama extension */
+#cmakedefine HAVE_XINERAMA 1
+
+/* Define if you have the XSHM (MIT SHM) extension */
+#cmakedefine HAVE_XSHM 1
+
+/* Define if you have the XComposite extension */
+#cmakedefine HAVE_XCOMPOSITE 1
+
+/* Define to 1 if you have Xcursor */
+#cmakedefine HAVE_XCURSOR 1
+
+/* Define if you have the xf86misc extension */
+#cmakedefine HAVE_XF86MISC 1
+
+/* Define if you have the XFixes extension */
+#cmakedefine HAVE_XFIXES 1
+
+/* Define if you have the XTest extension */
+#cmakedefine HAVE_XTEST 1
+
+/* Define if your system has XRender support */
+#cmakedefine HAVE_XRENDER 1
+
+/* Define if you have OpenGL */
+#cmakedefine HAVE_OPENGL 1
+
+/* Define if you have the XSync extension */
+#cmakedefine HAVE_XSYNC 1
Added: branches/tmp/tgoettlicher/yast2_2nd_rewrite/config-unix.h.cmake
URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/tgoettlicher/yast2_2nd_rewrite/config-unix.h.cmake?rev=44183&view=auto
==============================================================================
--- branches/tmp/tgoettlicher/yast2_2nd_rewrite/config-unix.h.cmake (added)
+++ branches/tmp/tgoettlicher/yast2_2nd_rewrite/config-unix.h.cmake Wed Feb 6 12:19:07 2008
@@ -0,0 +1,38 @@
+/* Defines if you have PAM (Pluggable Authentication Modules) */
+#cmakedefine HAVE_PAM 1
+
+/* Define if your PAM headers are in pam/ instead of security/ */
+#cmakedefine HAVE_PAM_PAM_APPL_H 1
+
+/* Define if your PAM expects a conversation function with const pam_message (Solaris) */
+#cmakedefine PAM_MESSAGE_CONST 1
+
+/* The PAM service to be used by kdm */
+#cmakedefine KDM_PAM_SERVICE ${KDM_PAM_SERVICE}
+
+/* The PAM service to be used by kcheckpass */
+#cmakedefine KCHECKPASS_PAM_SERVICE ${KCHECKPASS_PAM_SERVICE}
+
+/* The PAM service to be used by kscreensaver */
+#cmakedefine KSCREENSAVER_PAM_SERVICE ${KSCREENSAVER_PAM_SERVICE}
+
+/* Defines if your system has the getspnam function */
+#cmakedefine HAVE_GETSPNAM 1
+
+/* Defines if your system has the crypt function */
+#cmakedefine HAVE_CRYPT 1
+
+/* Define to 1 if you have the header file. */
+#cmakedefine HAVE_CRYPT_H 1
+
+/* Define to 1 if you have the `pw_encrypt' function. */
+#cmakedefine HAVE_PW_ENCRYPT 1
+
+/* Define to 1 if you have the `getpassphrase' function. */
+#cmakedefine HAVE_GETPASSPHRASE 1
+
+/* Define to 1 if you have the `vsyslog' function. */
+#cmakedefine HAVE_VSYSLOG 1
+
+/* Define to 1 if you have the header file. */
+#cmakedefine HAVE_LIMITS_H 1
Added: branches/tmp/tgoettlicher/yast2_2nd_rewrite/config-workspace.h.cmake
URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/tgoettlicher/yast2_2nd_rewrite/config-workspace.h.cmake?rev=44183&view=auto
==============================================================================
--- branches/tmp/tgoettlicher/yast2_2nd_rewrite/config-workspace.h.cmake (added)
+++ branches/tmp/tgoettlicher/yast2_2nd_rewrite/config-workspace.h.cmake Wed Feb 6 12:19:07 2008
@@ -0,0 +1,143 @@
+/* config-workspace.h. Generated by cmake from config-workspace.h.cmake */
+
+/* Define if you have DPMS support */
+#cmakedefine HAVE_DPMS 1
+
+/* Define if you have the DPMSCapable prototype in */
+#cmakedefine HAVE_DPMSCAPABLE_PROTO 1
+
+/* Define if you have the DPMSInfo prototype in */
+#cmakedefine HAVE_DPMSINFO_PROTO 1
+
+/* Defines if your system has the libfontconfig library */
+#cmakedefine HAVE_FONTCONFIG 1
+
+/* Define if you have gethostname */
+#cmakedefine HAVE_GETHOSTNAME 1
+
+/* Define if you have the gethostname prototype */
+#cmakedefine HAVE_GETHOSTNAME_PROTO 1
+
+/* Define to 1 if you have the `getpeereid' function. */
+#cmakedefine HAVE_GETPEEREID 1
+
+/* Defines if you have Solaris' libkstat */
+/* #undef HAVE_KSTAT */
+
+/* Define if you have long long as datatype */
+#define HAVE_LONG_LONG 1
+
+/* Define to 1 if you have the `nice' function. */
+#define HAVE_NICE 1
+
+/* Define to 1 if you have the header file. */
+#cmakedefine HAVE_SASL_H 1
+
+/* Define to 1 if you have the header file. */
+#cmakedefine HAVE_SASL_SASL_H 1
+
+/* Define to 1 if you have the `setpriority' function. */
+#cmakedefine HAVE_SETPRIORITY 1
+
+/* Define to 1 if you have the `sigaction' function. */
+#define HAVE_SIGACTION 1
+
+/* Define to 1 if you have the `sigset' function. */
+#define HAVE_SIGSET 1
+
+/* Define to 1 if you have statvfs */
+#cmakedefine HAVE_STATVFS 1
+
+/* Define to 1 if you have the header file. */
+#cmakedefine HAVE_STRING_H 1
+
+/* Define if you have the struct ucred */
+#cmakedefine HAVE_STRUCT_UCRED 1
+
+/* Define to 1 if you have the header file. */
+#cmakedefine HAVE_SYS_LOADAVG_H 1
+
+/* Define to 1 if you have the header file. */
+#cmakedefine HAVE_SYS_MOUNT_H 1
+
+/* Define to 1 if you have the header file. */
+#cmakedefine HAVE_SYS_PARAM_H 1
+
+/* Define to 1 if you have the header file. */
+#cmakedefine HAVE_SYS_STATFS_H 1
+
+/* Define to 1 if you have the header file. */
+#cmakedefine HAVE_SYS_STATVFS_H 1
+
+/* Define to 1 if you have statfs(). */
+#cmakedefine HAVE_STATFS 1
+
+/* Define to 1 if you have the header file. */
+#cmakedefine HAVE_SYS_SELECT_H 1
+
+/* Define to 1 if you have the header file. */
+#cmakedefine HAVE_SYS_SOCKET_H 1
+
+/* Define to 1 if you have the header file. */
+#cmakedefine HAVE_SYS_TIME_H 1
+
+/* Define to 1 if you have the header file. */
+#cmakedefine HAVE_SYS_TYPES_H 1
+
+/* Define to 1 if you have the header file. */
+#cmakedefine HAVE_SYS_VFS_H 1
+
+/* Define to 1 if you have the header file. */
+#cmakedefine HAVE_SYS_WAIT_H 1
+
+/* Define to 1 if you have the header file. */
+#cmakedefine HAVE_UNISTD_H 1
+
+/* Define to 1 if you have the header file. */
+#cmakedefine HAVE_STDINT_H 1
+
+/* Define if you have unsetenv */
+#cmakedefine HAVE_UNSETENV 1
+
+/* Define if you have the unsetenv prototype */
+#cmakedefine HAVE_UNSETENV_PROTO 1
+
+/* Define if you have usleep */
+#cmakedefine HAVE_USLEEP 1
+
+/* Define if you have the usleep prototype */
+#cmakedefine HAVE_USLEEP_PROTO 1
+
+/* Define to 1 if you have the `vsnprintf' function. */
+#cmakedefine HAVE_VSNPRINTF 1
+
+/* KDE's binaries directory */
+#define KDE_BINDIR "${BIN_INSTALL_DIR}"
+
+/* KDE's configuration directory */
+#define KDE_CONFDIR "${CONFIG_INSTALL_DIR}"
+
+/* KDE's static data directory */
+#define KDE_DATADIR "${DATA_INSTALL_DIR}"
+
+/* Define where your java executable is */
+#undef PATH_JAVA
+
+/* Define to 1 if you can safely include both and . */
+#cmakedefine TIME_WITH_SYS_TIME 1
+
+/* X binaries directory */
+#cmakedefine XBINDIR "${XBINDIR}"
+
+/* X libraries directory */
+#cmakedefine XLIBDIR "${XLIBDIR}"
+
+/* Number of bits in a file offset, on hosts where this is settable. */
+#define _FILE_OFFSET_BITS 64
+
+/*
+ * On HP-UX, the declaration of vsnprintf() is needed every time !
+ */
+
+/* type to use in place of socklen_t if not defined */
+#define kde_socklen_t socklen_t
Added: branches/tmp/tgoettlicher/yast2_2nd_rewrite/startkde.cmake
URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/tgoettlicher/yast2_2nd_rewrite/startkde.cmake?rev=44183&view=auto
==============================================================================
--- branches/tmp/tgoettlicher/yast2_2nd_rewrite/startkde.cmake (added)
+++ branches/tmp/tgoettlicher/yast2_2nd_rewrite/startkde.cmake Wed Feb 6 12:19:07 2008
@@ -0,0 +1,407 @@
+#!/bin/sh
+#
+# DEFAULT KDE STARTUP SCRIPT ( @KDE_VERSION_STRING@ )
+#
+
+# When the X server dies we get a HUP signal from xinit. We must ignore it
+# because we still need to do some cleanup.
+trap 'echo GOT SIGHUP' HUP
+
+# Check if a KDE session already is running and whether it's possible to connect to X
+kcheckrunning
+kcheckrunning_result=$?
+if test $kcheckrunning_result -eq 0 ; then
+ echo "KDE seems to be already running on this display."
+ xmessage -geometry 500x100 "KDE seems to be already running on this display." > /dev/null 2>/dev/null
+ exit 1
+elif test $kcheckrunning_result -eq 2 ; then
+ echo "\$DISPLAY is not set or cannot connect to the X server."
+ exit 1
+fi
+
+# Set the background to plain grey.
+# The standard X background is nasty, causing moire effects and exploding
+# people's heads. We use colours from the standard KDE palette for those with
+# palettised displays.
+if test -z "$XDM_MANAGED" || echo "$XDM_MANAGED" | grep ",auto" > /dev/null; then
+ xsetroot -solid "#000000"
+fi
+
+# we have to unset this for Darwin since it will screw up KDE's dynamic-loading
+unset DYLD_FORCE_FLAT_NAMESPACE
+
+# Enable lightweight memory corruption checker
+MALLOC_CHECK_=2
+export MALLOC_CHECK_
+
+# in case we have been started with full pathname spec without being in PATH
+bindir=`echo "$0" | sed -n 's,^\(/.*\)/[^/][^/]*$,\1,p'`
+if [ -n "$bindir" ]; then
+ case $PATH in
+ $bindir|$bindir:*|*:$bindir|*:$bindir:*) ;;
+ *) PATH=$bindir:$PATH; export PATH;;
+ esac
+fi
+
+# Boot sequence:
+#
+# kdeinit is used to fork off processes which improves memory usage
+# and startup time.
+#
+# * kdeinit starts klauncher first.
+# * Then kded is started. kded is responsible for keeping the sycoca
+# database up to date. When an up to date database is present it goes
+# into the background and the startup continues.
+# * Then kdeinit starts kcminit. kcminit performs initialisation of
+# certain devices according to the user's settings
+#
+# * Then ksmserver is started which takes control of the rest of the startup sequence
+
+# The user's personal KDE directory is usually ~/.kde, but this setting
+# may be overridden by setting KDEHOME.
+
+kdehome=$HOME/.kde
+test -n "$KDEHOME" && kdehome=`echo "$KDEHOME"|sed "s,^~/,$HOME/,"`
+
+# see kstartupconfig source for usage
+mkdir -m 700 -p $kdehome
+mkdir -m 700 -p $kdehome/share
+mkdir -m 700 -p $kdehome/share/config
+cat >$kdehome/share/config/startupconfigkeys <&2
+fi
+
+# Link "tmp" "socket" and "cache" resources to directory in /tmp
+# Creates:
+# - a directory /tmp/kde-$USER and links $KDEHOME/tmp-$HOSTNAME to it.
+# - a directory /tmp/ksocket-$USER and links $KDEHOME/socket-$HOSTNAME to it.
+# - a directory /var/tmp/kdecache-$USER and links $KDEHOME/cache-$HOSTNAME to it.
+# Note: temporary locations can be overriden through the KDETMP and KDEVARTMP
+# environment variables
+for resource in tmp cache socket; do
+ if ! "$lnusertemp" $resource >/dev/null; then
+ echo 'startkde: Call to lnusertemp failed (temporary directories full?). Check your installation.' 1>&2
+ test -n "$ksplash_pid" && kill "$ksplash_pid" 2>/dev/null
+ xmessage -geometry 600x100 "Call to lnusertemp failed (temporary directories full?). Check your installation."
+ exit 1
+ fi
+done
+
+# In case of dcop sockets left by a previous session, cleanup
+#dcopserver_shutdown
+
+echo 'startkde: Starting up...' 1>&2
+
+# Make sure that D-Bus is running
+if test -z "$XDG_DATA_DIRS"; then
+ XDG_DATA_DIRS="`kde4-config --prefix`/share:/usr/share:/usr/local/share"
+ export XDG_DATA_DIRS
+fi
+# D-Bus autolaunch is broken
+if test -z "$DBUS_SESSION_BUS_ADDRESS" ; then
+ eval `dbus-launch --sh-syntax --exit-with-session`
+fi
+if qdbus >/dev/null 2>/dev/null; then
+ : # ok
+else
+ echo 'startkde: Could not start D-Bus. Check your installation.' 1>&2
+ test -n "$ksplash_pid" && kill "$ksplash_pid" 2>/dev/null
+ xmessage -geometry 500x100 "Could not start D-Bus. Check your installation."
+ exit 1
+fi
+
+
+# Mark that full KDE session is running (e.g. Konqueror preloading works only
+# with full KDE running). The KDE_FULL_SESSION property can be detected by
+# any X client connected to the same X session, even if not launched
+# directly from the KDE session but e.g. using "ssh -X", kdesu. $KDE_FULL_SESSION
+# however guarantees that the application is launched in the same environment
+# like the KDE session and that e.g. KDE utilities/libraries are available.
+# KDE_FULL_SESSION property is also only available since KDE 3.5.5.
+# The matching tests are:
+# For $KDE_FULL_SESSION:
+# if test -n "$KDE_FULL_SESSION"; then ... whatever
+# For KDE_FULL_SESSION property:
+# xprop -root | grep "^KDE_FULL_SESSION" >/dev/null 2>/dev/null
+# if test $? -eq 0; then ... whatever
+#
+# Additionally there is (since KDE 3.5.7) $KDE_SESSION_UID with the uid
+# of the user running the KDE session. It should be rarely needed (e.g.
+# after sudo to prevent desktop-wide functionality in the new user's kded).
+#
+KDE_FULL_SESSION=true
+export KDE_FULL_SESSION
+xprop -root -f KDE_FULL_SESSION 8t -set KDE_FULL_SESSION true
+
+KDE_SESSION_VERSION=4
+export KDE_SESSION_VERSION
+xprop -root -f KDE_SESSION_VERSION 32c -set KDE_SESSION_VERSION 4
+
+KDE_SESSION_UID=$UID
+export KDE_SESSION_UID
+
+# We set LD_BIND_NOW to increase the efficiency of kdeinit.
+# kdeinit unsets this variable before loading applications.
+LD_BIND_NOW=true kdeinit4 +kcminit_startup
+if test $? -ne 0; then
+ # Startup error
+ echo 'startkde: Could not start kdeinit4. Check your installation.' 1>&2
+ test -n "$ksplash_pid" && kill "$ksplash_pid" 2>/dev/null
+ xmessage -geometry 500x100 "Could not start kdeinit4. Check your installation."
+ exit 1
+fi
+
+# If the session should be locked from the start (locked autologin),
+# lock now and do the rest of the KDE startup underneath the locker.
+if test -n "$dl"; then
+ kwrapper4 krunner_lock --forcelock &
+ # Give it some time for starting up. This is somewhat unclean; some
+ # notification would be better.
+ sleep 1
+fi
+
+# finally, give the session control to the session manager
+# see kdebase/ksmserver for the description of the rest of the startup sequence
+# if the KDEWM environment variable has been set, then it will be used as KDE's
+# window manager instead of kwin.
+# if KDEWM is not set, ksmserver will ensure kwin is started.
+# kwrapper4 is used to reduce startup time and memory usage
+# kwrapper4 does not return useful error codes such as the exit code of ksmserver.
+# We only check for 255 which means that the ksmserver process could not be
+# started, any problems thereafter, e.g. ksmserver failing to initialize,
+# will remain undetected.
+test -n "$KDEWM" && KDEWM="--windowmanager $KDEWM"
+kwrapper4 ksmserver $KDEWM
+if test $? -eq 255; then
+ # Startup error
+ echo 'startkde: Could not start ksmserver. Check your installation.' 1>&2
+ test -n "$ksplash_pid" && kill "$ksplash_pid" 2>/dev/null
+ xmessage -geometry 500x100 "Could not start ksmserver. Check your installation."
+fi
+
+# wait if there's any crashhandler shown
+while qdbus | grep "^[^w]*org.kde.drkonqi" > /dev/null ; do
+ sleep 5
+done
+
+echo 'startkde: Shutting down...' 1>&2
+# just in case
+test -n "$ksplash_pid" && kill "$ksplash_pid" 2>/dev/null
+
+# Clean up
+kdeinit4_shutdown
+
+echo 'startkde: Running shutdown scripts...' 1>&2
+
+# Run scripts found in $KDEDIRS/shutdown
+for prefix in `echo "$libpath" | sed -n -e 's,/lib[^/]*/,/shutdown/,p'`; do
+ for file in `ls "$prefix" 2> /dev/null | egrep -v '(~|\.bak)$'`; do
+ test -x "$prefix$file" && "$prefix$file"
+ done
+done
+
+unset KDE_FULL_SESSION
+xprop -root -remove KDE_FULL_SESSION
+unset KDE_SESSION_VERSION
+xprop -root -remove KDE_SESSION_VERSION
+unset KDE_SESSION_UID
+
+echo 'startkde: Done.' 1>&2
--
To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org
For additional commands, e-mail: yast-commit+help@opensuse.org