Hi all, Thanks for the feedback, especially Randall's hints for generalization. Also, I've added already a few lines of code to check if dcop is installed and executable. Verner Kjærsgaard wrote:
Søndag 02 december 2007 16:38 skrev Randall R Schulz:
Assuming an invocation of this script is to be placed in $HOME/.bash_profile, you might want to gracefully handle the case where the shell is running outside of KDE. That includes on virtual consoles, when connecting remotely via ssh and possible when using screen. I don't know if Gnome uses dcop or something else, so it might fail there and under different desktops and window managers as well.
In short, be prepared for dcop to fail and do nothing (probably silently) in that case.
Rgds, Stephan. Randall Schulz
God morning,
- how would one be able to detect if the script is being started outside of KDE? Can anyone come up with a short hint ? - thank you! I've made sure that the script is started via the $HOME/.kde/Autostart folder, not in $HOME/.bash_profile or another shell rc file. This makes sure that it is launched only in KDE and that it is launched only once, not with every new shell.
Regards, Stephan. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org