[kde-linux] Where to send init X commands?
James Tyrer
jrtyrer at earthlink.net
Sat Sep 12 08:04:16 UTC 2009
Alain Mouette wrote:
> Hi,
>
> I am using KDE on Kubuntu 8.04. It has a very annoying setup that forces
> me to issue
> xhost +
> before any window runs as root.
>
> My question is: Where should I put a simple script to be run when KDE
> has already started?
>
> FWIK, ~/.kde/Autostart is for x.desktop icons, right?
>
Actually, the issue is that this is an X issue so it would be best not
to use the Autostart.
You don't need to write a script. You should have a script:
$KDEDIR/share/config/kdm/Xstartup
just add the command at the end of it.
You may still run into the need to set DISPLAY despite the fact that you
only have one X display open.
If you wish to run a KDE application as root from a Konsole, I would
still recommend that you use the "kdesu" command.
---
JRT
More information about the kde-linux
mailing list