Johnny Ernst Nielsen writes:
How do I get a GUI program (kdialog) to show on the X screen by a script in /etc/ppp/ip-up.d? It has to happen on the screen of whatever user is logged into KDE. ...
It is the kdialog command that will not work.
Both $USER and $DISPLAY are empty when the script is running, but all, except the call to kdialog, works as it is supposed to.
kdialog fails with this message: "kdialog: cannot connect to X server"
What you're trying to do is not quite right. The stuff that gets run in /etc/ppp/* (or for that matter, any of the rc or network startup/shutdown scripts) can happen without anyone even being logged in. A system may not even be running X at all... Their output can only be directed to the console which is the only "terminal" device that is guaranteed to be there, with or without a user actually logged in. If you want to be informed of certain events in the system while you're logged in under KDE, the proper way to do it is to write a script or program to monitor for such an event in the background, which you start up during or after you log in. It will then have the proper output context (login name, terminal, $DISPLAY environment, permissions, etc) on which to produce output. -Ti -- Ti Kan http://www.amb.org/ti Vorsprung durch Technik