Hello,
I want to open graphical applications as if I was another user. But I don't want to close session and to re-login as another user.
If I use "su -" and then I use the "open" command, it works well, I can open any graphical application.
If I use "su user_name", I've the nex error if I use the "open" command :
"kCGErrorFailure : initCGDisplayState: No display interlock"
I tried to define the DISPLAY environment variable (setenv DISPLAY localhost). It didn't change anything. Then, I tried to give the IP numebr : "setenv DISPLAY 192.168.1.33". Without success.
I tried to use xhost + to give acces to graphical part, but it didn't change anyhing.
Does someone have any advice ? Does someone manage to open graphical application after a "su user_name command" ?
Thank you for any help.
I want to open graphical applications as if I was another user. But I don't want to close session and to re-login as another user.
If I use "su -" and then I use the "open" command, it works well, I can open any graphical application.
If I use "su user_name", I've the nex error if I use the "open" command :
"kCGErrorFailure : initCGDisplayState: No display interlock"
I tried to define the DISPLAY environment variable (setenv DISPLAY localhost). It didn't change anything. Then, I tried to give the IP numebr : "setenv DISPLAY 192.168.1.33". Without success.
I tried to use xhost + to give acces to graphical part, but it didn't change anyhing.
Does someone have any advice ? Does someone manage to open graphical application after a "su user_name command" ?
Thank you for any help.