Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37739032
en ru br
Репозитории ALT
S:45.0.1-alt2
5.1: 2.26.1-alt5.M51.2
4.1: 2.20.7-alt1.M41.1
4.0: 2.18.4-alt1
3.0: 2.6.0.9-alt1
www.altlinux.org/Changes

Другие репозитории
Upstream:2.20.4

Группа :: Графические оболочки/GNOME
Пакет: gdm

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Патч: gdm-2.4.4.4-alt-xsession.patch
Скачать


--- gdm-2.4.4.2/config/Xsession.in	2003-08-18 21:31:08 +0400
+++ gdm-2.4.4.2/config/Xsession.in.alt	2003-09-26 01:59:24 +0400
@@ -26,14 +26,22 @@
 
 # this will go into the .xsession-errors along with all other echo's
 # good for debugging where things went wrong
+
+SourceIfNotEmpty()
+{
+	local f="$1"
+	shift
+	[ -s "$f" ] && . "$f" "$@"
+}
+
 echo "$0: Beginning session setup..."
 
 # First read /etc/profile and .profile
-test -f /etc/profile && . /etc/profile
-test -f "$HOME/.profile" && . "$HOME/.profile"
+SourceIfNotEmpty /etc/profile "$@"
+SourceIfNotEmpty "$HOME"/.profile "$@"
 # Second read /etc/xprofile and .xprofile for X specific setup
-test -f /etc/xprofile && . /etc/xprofile
-test -f "$HOME/.xprofile" && . "$HOME/.xprofile"
+SourceIfNotEmpty /etc/xprofile "$@"
+SourceIfNotEmpty "$HOME"/.xprofile "$@"
 
 # Translation stuff
 if [ -x "@EXPANDED_LIBEXECDIR@/gdmtranslate" ] ; then
@@ -197,8 +205,6 @@
     command="$HOME/.Xclients"
   elif [ -x /etc/X11/xinit/Xclients ]; then
     command="/etc/X11/xinit/Xclients"
-  elif [ -x /etc/X11/Xclients ]; then
-    command="/etc/X11/Xclients"
   else
     echo "$0: Cannot find Xclients"
     # FIXME: kind of an evil failsafe
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin