summaryrefslogtreecommitdiff
path: root/x11-misc/sddm/files/sddm-0.18.1-Xsession.patch
blob: e1e3c1527be74e3d8822a1684e71b10143139489 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
--- a/data/scripts/Xsession
+++ b/data/scripts/Xsession
@@ -50,6 +50,10 @@
     ;;
 esac
 
+# Make D-Bus start properly, see:
+# /etc/X11/xinit/xinitrc.d/80-dbus
+command="$@"
+
 [ -f /etc/xprofile ] && . /etc/xprofile
 [ -f $HOME/.xprofile ] && . $HOME/.xprofile
 
@@ -94,8 +98,8 @@
   . "$USERXSESSION"
 fi
 
-if [ -z "$*" ]; then
+if [ -z "$command" ]; then
     exec xmessage -center -buttons OK:0 -default OK "Sorry, $DESKTOP_SESSION is no valid session."
 else
-    exec $@
+    exec $command
 fi