Sophie

Sophie

distrib > Mageia > 3 > i586 > media > core-release-src > by-pkgid > a334d3dea2fdef4c4558d7a45cc07013 > files > 2

gnome-session-3.6.2-5.mga3.src.rpm

#!/bin/sh

if [ "$MGA_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

SESSION_ARGS=
if [ "$GNOME_CLASSIC" = 1 ]; then
  SESSION_ARGS="--session gnome-fallback"
  unset GNOME_CLASSIC
fi

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