FS#54560 - [gksu] non-functional gksu.desktop

Attached to Project: Arch Linux
Opened by Bernhard Landauer (oberon) - Friday, 23 June 2017, 13:23 GMT
Last edited by Jan de Groot (JGC) - Wednesday, 28 June 2017, 21:50 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Jan de Groot (JGC)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

The original gksu.desktop file includes
Exec=gksu /usr/bin/x-terminal-emulator

I understand that we don't have that.
Currently the PKGBUILD has the command replaced with
gksu -l gnome-terminal

Unfortunately this appears to be not working:
$ gksu -l gnome-terminal
Unable to init server: Could not connect: Connection refused
Failed to parse arguments: Cannot open display:

or without login option:

$ gksu gnome-terminal
Error constructing proxy for org.gnome.Terminal:/org/gnome/Terminal/Factory0: Error spawning command line “dbus-launch --autolaunch=f6b9df331ace45a291ce0979d0b0a66c --binary-syntax --close-stderr”: Child process exited with code 1

So the launcher 'Root Terminal' doesn nothing.

Instead what would be working:
gksu dbus-launch gnome-terminal

Although even better I think it would be to not assume gnome-terminal is necessarily always installed. How about
gksu dbus-launch $TERM
?
This task depends upon

Closed by  Jan de Groot (JGC)
Wednesday, 28 June 2017, 21:50 GMT
Reason for closing:  Fixed
Comment by Jan de Groot (JGC) - Friday, 23 June 2017, 23:30 GMT
What about removing this crap? If you want root inside a terminal use su or sudo instead of launching the terminal as root.

Gksu is als severely broken with wayland, so maybe we should kill the whole package and not just the desktop launcher.
Comment by Bernhard Landauer (oberon) - Saturday, 24 June 2017, 00:13 GMT
;) +1 for removing at least the launcher.

Loading...