You are not logged in.
Pages: 1
When I try to launch graphical application from other's system user, it prompts these:
Unable to init server: Could not connect: Connection refused
I tried "xhost +local:", it gave no effect.
Last edited by hubcap (2016-09-16 14:12:45)
Offline
We need more information. Is xserver already started? Are you launching from within X or another tty or what? How are you launching it (e.g., what command did you type in)?
aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies
Offline
Yes, X server is already started, and I launching from within X.
Well, for example
firefox: Error: GDK_BACKEND does not match available displays
gedit: Unable to init server: Could not connect: Connection refused
(gedit:1974): Gtk-WARNING **: cannot open display:
file-roller:Unable to init server: Could not connect: Connection refused
** (file-roller:1982): CRITICAL **: Failed to parse arguments: Cannot open display:
Offline
When I try to launch graphical application from other's system user
This is the problem. You can't run X clients from a different user - at least not without passing a load of environment variables and handling permission issues. At the very least you'd need to define DISPLAY, but in many cases that'd not be sufficient.
Use gksu or kdesu.
"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" - Richard Stallman
Offline
hubcap wrote:When I try to launch graphical application from other's system user
This is the problem. You can't run X clients from a different user - at least not without passing a load of environment variables and handling permission issues. At the very least you'd need to define DISPLAY, but in many cases that'd not be sufficient.
Use gksu or kdesu.
Defining DISPLAY worked, thank you for help.
Offline
Pages: 1