|
Added
Link Here
|
| 0 |
- |
1 |
Fix use of "$@" (see sh(1)). |
|
|
2 |
|
| 3 |
There's no systemd on FreeBSD so start the session using $STARTUP which is |
| 4 |
defined in 90-consolekit if ConsoleKit2 is installed. By default this allows |
| 5 |
local users to shutdown/reboot the machine and access devices like USB keys. |
| 6 |
|
| 7 |
Also use dbus-run-session so libdbus doesn't have to autolauch the session bus |
| 8 |
daemon on first use. Autolaunched dbus daemons tend to linger and may only |
| 9 |
exit if the X server exits. |
| 10 |
|
| 11 |
--- data/scripts/Xsession.orig 2019-03-13 09:22:35 UTC |
| 12 |
+++ data/scripts/Xsession |
| 13 |
@@ -98,5 +98,5 @@ fi |
| 14 |
if [ -z "$*" ]; then |
| 15 |
exec xmessage -center -buttons OK:0 -default OK "Sorry, $DESKTOP_SESSION is no valid session." |
| 16 |
else |
| 17 |
- exec $@ |
| 18 |
+ exec $STARTUP /usr/bin/dbus-run-session --dbus-daemon=/usr/bin/dbus-daemon -- "$@" |
| 19 |
fi |