Sophie

Sophie

distrib > Mandriva > 2008.1 > x86_64 > by-pkgid > ff318c27534e5c029a39c0122958ed8e > files > 3

gnome-session-2.22.2-1mdv2008.1.x86_64.rpm

#!/bin/sh

if [ -r $HOME/.gnome2/session-manual -a ! -r $HOME/.gnome2/.mdkgalaxymigrate ]; then
  sed -i -e 's|0,RestartStyleHint=3\n0,Priority=50\n0,RestartCommand=/usr/bin/mandrakegalaxy\n||m' $HOME/.gnome2/session-manual 
touch $HOME/.gnome2/.mdkgalaxymigrate 
fi

if [ "$MDV_MENU_STYLE" = "upstream" ]; then
	if  [ -z "$XDG_CONFIG_DIRS" ]; then
 	    export XDG_CONFIG_DIRS="/etc/xdg/gnome:/etc/xdg"
	else
	    export XDG_CONFIG_DIRS="/etc/xdg/gnome:$XDG_CONFIG_DIRS"
	fi
else
	if  [ -z "$XDG_CONFIG_DIRS" ]; then
 	    export XDG_CONFIG_DIRS="/etc/xdg:/etc/xdg/gnome"
	else
	    export XDG_CONFIG_DIRS="$XDG_CONFIG_DIRS:/etc/xdg/gnome"
	fi
fi

#clean up old sockets if any
[ -x /usr/bin/linc-cleanup-sockets ] && /usr/bin/linc-cleanup-sockets 2> /dev/null > /dev/null


# path takes precedence
exec gnome-session
exec /usr/bin/gnome-session