[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#759518: x11-common: Print the real name of the executable instead of x-session-manager



Le Tue, 23 Sep 2014 21:25:53 +0200,
Laurent Bigonville <bigon@debian.org> a écrit :

> tag 759518 + patch
> thanks
> 
> Hi,
> 
> Is a patch like this acceptable?
> 
> Cheers,
> 
> Laurent Bigonville

Bahh wrong copy/paste I guess we should use
/usr/bin instead of /etc/alternatives/ I guess
diff -Nru xorg-7.7+7/debian/local/Xsession.d/50x11-common_determine-startup xorg-7.7+7bigon1/debian/local/Xsession.d/50x11-common_determine-startup
--- xorg-7.7+7/debian/local/Xsession.d/50x11-common_determine-startup	2013-09-26 01:24:29.000000000 +0200
+++ xorg-7.7+7bigon1/debian/local/Xsession.d/50x11-common_determine-startup	2014-09-23 21:17:27.000000000 +0200
@@ -26,11 +26,11 @@
 # default session manager, window manager, and terminal emulator.
 if [ -z "$STARTUP" ]; then
   if [ -x /usr/bin/x-session-manager ]; then
-    STARTUP=x-session-manager
+    STARTUP=$(basename $(readlink -e /usr/bin/x-session-manager) 2>/dev/null)
   elif [ -x /usr/bin/x-window-manager ]; then
-    STARTUP=x-window-manager
+    STARTUP=$(basename $(readlink -e /usr/bin/x-window-manager) 2>/dev/null)
   elif [ -x /usr/bin/x-terminal-emulator ]; then
-    STARTUP=x-terminal-emulator
+    STARTUP=$(basename $(readlink -e /usr/bin/x-terminal-emulator) 2>/dev/null)
   fi
 fi
 

Reply to: