Mailinglist Archive: opensuse (3156 mails)
| < Previous | Next > |
Re: [opensuse] Starting apps automatically in console session - SOLVED
- From: Randall R Schulz <rschulz@xxxxxxxxx>
- Date: Sun, 2 Dec 2007 07:38:35 -0800
- Message-id: <200712020738.35404.rschulz@xxxxxxxxx>
On Sunday 02 December 2007 00:14, Stephan Hegel wrote:
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.
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.
Randall Schulz
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx
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
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx
| < Previous | Next > |