FS#31720 - [util-linux] Cannot running GUI Application from "su -l" and "gksu -l"
Attached to Project:
Arch Linux
Opened by miraclex (miraclex) - Friday, 28 September 2012, 16:17 GMT
Last edited by Dave Reisner (falconindy) - Friday, 28 September 2012, 22:29 GMT
Opened by miraclex (miraclex) - Friday, 28 September 2012, 16:17 GMT
Last edited by Dave Reisner (falconindy) - Friday, 28 September 2012, 22:29 GMT
|
Details
Description:
=============================================================================== Cannot running any GUI applications as root from "su -l" and "gksu -l" Additional info: =============================================================================== Package : util-linux 2.22-6 Programs : su, gksu Topic discussion : https://bbs.archlinux.org/viewtopic.php?id=149534 Steps to reproduce: =============================================================================== Example 1 : $ su - # gparted Example 2 : $ gksu -l thunar "Thunar: Cannot open display:" |
This task depends upon
Closed by Dave Reisner (falconindy)
Friday, 28 September 2012, 22:29 GMT
Reason for closing: Not a bug
Additional comments about closing: Working as described by the manual.
Friday, 28 September 2012, 22:29 GMT
Reason for closing: Not a bug
Additional comments about closing: Working as described by the manual.
AFAIK you're not supposed to run GUI programs as root but here ( http://forums.opensuse.org/english/get-technical-help-here/applications/476775-cannot-open-gui-programs-root.html ) and here ( http://www.unix.com/man-page/OpenSolaris/1/gksu/ ) it seems you can with gksu.
AFAIK you should do "gksu thunar", maybe I'm wrong.
Also I cannot test it, just suggesting.
Since I have discovered a couple of workarounds for Arch XFCE, it's not real important to me that this gets fixed, but it would be nice for consistancy sake... As I stated above, "$ su -" used to open these applications up until a couple of weeks ago in Arch XFCE."
Thank you, djgera.
Ok, running gui apps as root from "su -l" is works :
Example:
$ su -
# export DISPLAY=:0.0
# gparted
But running gui apps as root from "gksu -l" is impossible.
Please explain me what the use of "gksu -l <gui app>" ?
Thank you.
Example :
$ gksu -l "export DISPLAY=:0.0; gparted"
What do you think about it ? Is this default behaviour now ?
If this is default behaviour,
I can't understand why there is "gksu -l" but you must export $DISPLAY to running any gui apps.
"--login, -l Make this a login shell. Beware this may cause problems with the Xauthority magic. Run xhost to allow the target user to open windows on your display!"
I understand,
but really I can't understand why there is "gksu -l" but you must export $DISPLAY to running any gui apps.