LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   kdialog error (https://www.linuxquestions.org/questions/linux-general-1/kdialog-error-485328/)

pujansrt 09-20-2006 10:43 AM

kdialog error
 
Hi Guys,

I am getting the follwing error related to kdialog. It seems that it is not related to xlib since it is already installed.

Any idea?

root@linux:~#kdialog --msgbox "this is the test"

Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

kdialog: cannot connect to X server :0


--Regards,
Pujan Srivastava

bigrigdriver 09-21-2006 10:27 AM

You apparently are logged in as user, then did su to root and tried to run a graphical application as root, from the command line.

The correct procedure. As user, issue the command: xhost +localhost. Then su to root. Then run kdialog.

When you're done, exit to user prompt, then run: xhost -localhost.


All times are GMT -5. The time now is 05:43 PM.