#!/bin/bash # # This is not the original gnome-session but a start script # to install some preconfiguration for GNOME # and some variables to check. # # For feedback on this script please use # https://bugzilla.novell.com/ # # Define directory that we use to store migration state if test "x$XDG_CONFIG_HOME" = "x"; then XDG_CONFIG_HOME="$HOME/.config" fi SUSE_DIR="$XDG_CONFIG_HOME/suse" if test -e /usr/share/applications/YaST2/live-installer.desktop; then IS_LIVE_IMAGE="yes" else IS_LIVE_IMAGE="no" fi # Use gnome-applications.menu instead of applications.menu: its # structure is more appropriate. export XDG_MENU_PREFIX=gnome- # Some actions that are specific to the LiveCD if test "$IS_LIVE_IMAGE" = "yes" ; then ## Make live installer icon more visible. Note that we can't simply put it on ## the desktop, since the desktop is not managed by nautilus anymore (by ## default) if test -f /etc/xdg/menus/${XDG_MENU_PREFIX}applications.menu; then # Add live installer to the system tools menu (this is nice to have, and also # required for the favorite app change below) mkdir -p -m 0700 "${XDG_CONFIG_HOME}" mkdir "${XDG_CONFIG_HOME}/menus" cat > "${XDG_CONFIG_HOME}/menus/${XDG_MENU_PREFIX}applications.menu" << EOF
EOF # Add live installer as favorite application to gnome-shell dash FAVORITES=`gsettings get org.gnome.shell favorite-apps` if test $? -eq 0; then FAVORITES=`echo ${FAVORITES} | sed "s:^\[:\['YaST2-live-installer.desktop', :"` gsettings set org.gnome.shell favorite-apps "${FAVORITES}" fi # FIXME: we need to add a launcher for gnome-panel (fallback mode) fi ## Other tweaks # setup session to not have a lock-enabled screensaver gsettings set org.gnome.desktop.screensaver lock-enabled false # setup session to not care about updates gsettings set org.gnome.settings-daemon.plugins.updates active false fi # Uncomment after SLED12, remove after SLED14: #rm -f ~/.skel/gnome2-run ~/.skel/gnome2-run-9.2 ~/.skel/sled10-run exec /usr/bin/gnome-session $*