Johnny Ernst Nielsen writes:
... 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.
Are you saying that it is absolutely, totally, technically impossible to run a GUI application from the script the way I am trying to -- even if X IS up?
No it's not technically impossible, just technically inelegant and contrary to the intentions and design of the system.
On this computer, connection to the internet should not happen unless I specifically clicked the kinternet icon to make my modem dial out. As far as I understand, scripts in /etc/ppp/ip-up.d is run only when the IP comes up on a ppp connection being established, i.e. when the line is ready to transfer user information.
Have I misunderstood that?
If not, could you give an example of when the script in /etc/ppp/ ip-up.d would be run WITHOUT me first clicking the kinternet icon?
I was speaking in general terms. A system may be set up such that it would attempt an auto-dial PPP connection when there is pending traffic. This may not be from kinternet, in fact may be from a user logged in from a non-X terminal. I always try to find the most general solution possible that would work under all circumstances. -Ti -- Ti Kan http://www.amb.org/ti Vorsprung durch Technik