Mageia Bugzilla – Attachment 8603 Details for
Bug 18199
/etc/X11/Xsession fails to start GNOME classic session
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
[patch]
patch for xinitrc's Xsession to get sddm working with gnome-classic
Xsession.diff (text/plain), 854 bytes, created by
Giuseppe Ghibò
on 2016-10-27 01:04:07 CEST
(
hide
)
Description:
patch for xinitrc's Xsession to get sddm working with gnome-classic
Filename:
MIME Type:
Creator:
Giuseppe Ghibò
Created:
2016-10-27 01:04:07 CEST
Size:
854 bytes
patch
obsolete
>--- Xsession.orig 2016-08-30 13:02:18.000000000 +0200 >+++ Xsession 2016-10-27 00:07:27.528180344 +0200 >@@ -12,6 +12,9 @@ > # default values > > DESKTOP=default >+ARGS="$@" >+NARGS=$# >+LAST="${@:$#}" > > # read the user (~/.i18n) or system-wide (/etc/sysconfig/i18n) i18n settings > . /etc/profile.d/10lang.sh >@@ -146,6 +149,15 @@ > exec /bin/sh -c "$HOME/.Xclients" > fi > >+#(gg) if we are still here, we heuristically assume that the arguments >+# passed to Xsession represents the command to be executed for running the desktop environment. >+# Ideally we assume the last argument is the session name, though it doesn't matter. >+if [ "$NARGS" -ge 2 -a "$DESKTOP" = "default" ]; then >+ FALLBACK_EXEC="$ARGS" >+ SESSION="$LAST" >+ exec /bin/sh -c "${FALLBACK_EXEC}" >+fi >+ > # We may try with chksession > if [ -x /usr/sbin/chksession ];then > #get the first available
--- Xsession.orig 2016-08-30 13:02:18.000000000 +0200 +++ Xsession 2016-10-27 00:07:27.528180344 +0200 @@ -12,6 +12,9 @@ # default values DESKTOP=default +ARGS="$@" +NARGS=$# +LAST="${@:$#}" # read the user (~/.i18n) or system-wide (/etc/sysconfig/i18n) i18n settings . /etc/profile.d/10lang.sh @@ -146,6 +149,15 @@ exec /bin/sh -c "$HOME/.Xclients" fi +#(gg) if we are still here, we heuristically assume that the arguments +# passed to Xsession represents the command to be executed for running the desktop environment. +# Ideally we assume the last argument is the session name, though it doesn't matter. +if [ "$NARGS" -ge 2 -a "$DESKTOP" = "default" ]; then + FALLBACK_EXEC="$ARGS" + SESSION="$LAST" + exec /bin/sh -c "${FALLBACK_EXEC}" +fi + # We may try with chksession if [ -x /usr/sbin/chksession ];then #get the first available
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 18199
:
8299
|
8300
| 8603 |
8604