LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   How to enable root to run graphical application in user log in (https://www.linuxquestions.org/questions/slackware-14/how-to-enable-root-to-run-graphical-application-in-user-log-in-298627/)

xgreen 03-07-2005 06:17 AM

How to enable root to run graphical application in user log in
 
hi,

i would to to know how to enable root to run graphical application in user log in?

slackie1000 03-07-2005 07:11 AM

hi there,

i don't know if i understood correct.
supposing a terminal environment, you can
Code:

xhost +
export DISPLAY wherever:0.0

now you call from the terminal your application.
or if you mean, with loggin in as root, you should take a look at
Code:

man sudo
i am not sure if i understood well your question..
hope it helps...

regards

slackie1000

xgreen 03-07-2005 07:20 AM

sorry for the typo error, what i trying to do is

1. log in as normal user and startx
2. open terminal and su - root
3. run X application e.g xmms

slackie1000 03-07-2005 07:34 AM

hi there,

clear now! :)
you only need to xhost + && export DISPLAY .
for the correct syntax i suggest a look at the man page of your shell.
ex
Code:

export DISPLAY=YOUR_HOST:0.0
should work for bash.

regards

slackie1000

xgreen 03-07-2005 07:39 AM

export DISPLAY=YOUR_HOST:0.0 working fine..

thx


All times are GMT -5. The time now is 03:04 PM.