vhuid64 on openSUSE --> issue with DISPLAY

Hello,

am tryng to start vhuid64 (the graphical version).
as a norma user, I cannot start is.
If starting via sudo, the DISPLAY variable is missing.
How to start vhui64d ?

See here:
hrehm@linux-8e2a:~/Downloads> ./vhuit64
Please run with sudo
hrehm@linux-8e2a:~/Downloads> sudo ./vhuit64
[sudo] password for root:
10:48:46: Error: Unable to initialize GTK+, is DISPLAY set properly?

#3

Hi,

Thanks for the Tip, but xhost ACL is disabled:

hrehm@linux-8e2a:~/Downloads> xhost +
access control disabled, clients can connect from any host
hrehm@linux-8e2a:~/Downloads> su
Password:
linux-8e2a:/home/hrehm/Downloads # xhost +
access control disabled, clients can connect from any host

#4

What version of opensuse are you using? ill download it and give it a test...

#5

Got it working...

Had to define the openSUSE display Variable in root's bashrc:

hrehm@linux-8e2a:~> sudo cat /root/.bashrc
export DISPLAY=:0

After that I can start the client with:

hrehm@linux-8e2a:~> kdesu bin/vhuit64

Thanks,
Heiko

#6

in fact you shoudl not do anything special. just use kdesu and any piece of s/w that needs a display and root will work.

Don't mess with bashrc, xhost and the like; that really is not necessary.

#7

just use kdesu; don't mess with .basrc, xhost and such. Not needed at all.

If your program needs the display and root, exec using kdesu.