[maemo-developers] Running GUI applications as root

From: Tim Teulings rael at edge.ping.de
Date: Mon Sep 10 07:53:15 EEST 2007
Hello!

> Have you tried using the -X switch on the ssh command?
> ssh -X root at localhost

The dropbear client does not have -X (the fact that DISPLAY is set after 
ssh root at localhost suggested to me that it might use -X always?). 
However since I cannot start ooso_sketch or ossoemail after logging in 
as root, too, suggests that -X might not be implicitely used and that my 
client might crash because it cannot connect to X11 (and 
run-standalone.sh as root does re-create the necessary environment...).

Should install openssh client instead ;-)

Hmm, now what about using sudo, which crashes my client, too. Does this 
suggest that the environment is broken for X11 applications, too, and 
that I have to use run-standalone.sh as part of the sudo call, too 
(instead sudo /usr/bin/WifiInfo I should do sudo run-standalone.sh 
/usr/bin/WifiInfo - but wasn't there the rule, that I cannot call 
scripts in this case because of security reasons?)?

(Nevertheless I have to find the bug, that makes my applications 
crashing if initialization fails...:-/ )

-- 
Gruß...
        Tim


More information about the maemo-developers mailing list