systemd support

Bug #1524755 reported by Jeffery Wilkins
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gksu (Ubuntu)
Invalid
Undecided
Unassigned
gnome-terminal (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

we need support for systemd because both sudo and su are broken
systemd sets a XDG_RUNTIME_DIR for /run/user/<UID>
when doing su or sudo XDG_RUNTIME_DIR does not get set and /run/user/0 does not get created
please see the github pull request I opened on github
https://github.com/systemd/systemd/pull/2130

Revision history for this message
Jeffery Wilkins (djcanadianjeff) wrote :

jefferyw@xubuntu:~$ sudo gnome-terminal
Error constructing proxy for org.gnome.Terminal:/org/gnome/Terminal/Factory0: Error calling StartServiceByName for org.gnome.Terminal: GDBus.Error:org.freedesktop.DBus.Error.Spawn.ChildExited: Process org.gnome.Terminal exited with status 10
jefferyw@xubuntu:~$ env | grep XDG
XDG_VTNR=7
XDG_SESSION_ID=c5
XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/jefferyw
XDG_MENU_PREFIX=xfce-
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0
XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
XDG_CONFIG_DIRS=/etc/xdg/xdg-xfce:/usr/share/upstart/xdg:/etc/xdg:/etc/xdg
XDG_SESSION_TYPE=x11
XDG_SEAT=seat0
XDG_SESSION_DESKTOP=xfce
XDG_DATA_DIRS=/usr/share/xfce:/usr/share/xfce4:/usr/local/share/:/usr/share/:/usr/share
XDG_RUNTIME_DIR=/run/user/1000
XDG_CURRENT_DESKTOP=XFCE
jefferyw@xubuntu:~$ su -
Password:
root@xubuntu:~# env | grep XDG
root@xubuntu:~# exit
logout
jefferyw@xubuntu:~$ sudo bash
root@xubuntu:~# env | grep XDG
root@xubuntu:~# exit
exit
jefferyw@xubuntu:~$

information type: Private Security → Public
Martin Pitt (pitti)
no longer affects: systemd (Ubuntu)
Revision history for this message
dino99 (9d9) wrote :

As Poettering said on github:
There's nothing to fix in gksu. Fix your app to not rely on XDG_RUNTIME_DIR.

Changed in gksu (Ubuntu):
status: New → Invalid
Changed in gnome-terminal (Ubuntu):
status: New → Invalid
Revision history for this message
Jeffery Wilkins (djcanadianjeff) wrote :

thanks for digging up a 2 year old problem holy hell

Revision history for this message
Jeffery Wilkins (djcanadianjeff) wrote :

I setup this bug because it was causing mate-panel to lock up and crash the whole desktop just because systemd is garbage

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.