Søndag 02 december 2007 16:38 skrev Randall R Schulz:
> On Sunday 02 December 2007 00:14, Stephan Hegel wrote:
> > Hi all,
> >
> > A while back I asked how to start console apps automatically
> > in a certain konsole session.
> >
> > I just want share the little script I wrote last night: it
> > launches the atop utility in an existing session named "Atop".
>
> That looks handy. I can see using it.
>
> You might consider generalizing it a bit. E.g., if a script matching the
> session name can be found in a particular directory, say
> $HOME/session-startup/, then that script is launched in the matching
> session. Then the script need not be modified to accommodate changes in
> the complement of pre-assigned sessions you want to handle.
>
> > Might be the general idea behind is useful for somebody out
> > there. That's why I've put a few more comments in it ...
>
> 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!




-- 
-------------------------------------------------------------------------
Med venlig hilsen/Best regards
Verner Kjærsgaard
Novell Certified Linux Professional 10035701
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to