Bug 150094

Summary: It 'd be fine if Konsole will have assotiated command for each subwindow.
Product: [openSUSE] SUSE LINUX 10.0 Reporter: Olli Artemjev <grey-olli>
Component: KDEAssignee: E-mail List <kde-maintainers>
Status: RESOLVED WONTFIX QA Contact: E-mail List <qa-bugs>
Severity: Enhancement    
Priority: P4 - Low CC: grey-olli, suse-beta
Version: FinalKeywords: UI
Target Milestone: ---   
Hardware: i686   
OS: SuSE Linux 10.0   
Whiteboard:
Found By: Customer Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Olli Artemjev 2006-02-10 22:10:36 UTC
The idea is simple:

Each time I start Konsole I use a few windows & run there some commands. Then I rename those windows to remember "what & where". Then oftenly I save settings.
Currently it works (from KDE), but on start of a subwindow from saved state I would be glad to see the command started atomaticaly. The command should be assotiated with name of the Konsole subwindow. If it will be accepted as a good idea, then also it should be configurable: what to do if command died. Say 'ssh' to remote end assotiated w/ subwindow named 'remote'. Then after a some time the ssh will givup on timeout. If assotiated command is set, it'll be good to either:
1. restart command in that case (w/ configurable count of failures & final failure action).
2. open subwindow w/ stdout/stderr from failed command.(w/ configurable count of failures vefore doing that).
3. close subwindow w/ popup for user.
4. close subwindow silently.
Comment 1 Stephan Kulow 2006-02-11 09:01:35 UTC
report to bugs.kde.org - perhaps you can also provide a patch
Comment 2 Christian Boltz 2006-02-11 16:57:31 UTC
Maybe you don't even need new features and just have to use the existing ones. I use the following script - start Konsole with
    konsole  --title "messages"  -e /home/cb/bin/kde_autostart


#!/bin/sh
#/home/cb/bin/kde_autostart
xmodmap /home/cb/.Xmodmap
ssh-add
dcop konsole-$PPID  konsole newSession tuxssh >/dev/null
dcop konsole-$PPID  konsole newSession Fontlinge >/dev/null
dcop konsole-$PPID  konsole newSession FAQ >/dev/null
dcop konsole-$PPID  konsole newSession MBox >/dev/null
clear
exec tail -f /var/log/messages


This opens Konsole, runs xmodmap and ssh-add in the first session (titled "messages"), then displays /var/log/messages - and opens 4 new tabs with different sessions. 

Note that you have to setup these sessions (tuxssh, Fontlinge, ...) in the "Konsole settings" dialog. You can set different color shemes, default directories and even commands to execute there for each session.

If you still feel the need to create a report on bugs.kde.org, please post the URL here.