Version: (using KDE KDE 3.0.3KDE 1.2KDE 1.2) Installed from: Debian testing/unstable PackagesDebian testing/unstable PackagesDebian testing/unstable Packages OS: Linux Add one option for open another shell in the same Konsole window but in other shell (another button on kconsole toolbar) This could be useful for opening in a script a lot of shells with commands using only one konsole window. It could also detect the number of actual shells on a konsole window and when this number it's > 10 (or other number) create another Konsole window instead of adding other shell to the same konsole window.
I'm refering to a special command/parameter of konsole that could be added to a bash script (for example) konsole -r command_to_open_in_a_new_shell
This should be already possible with a little script based on this fragment: dcop | grep konsole | while read instance; do if [ `dcop $instance default sessionCount` -lt 10 ]; then newsession=`dcop $instance default newSession` dcop $instance $newsession sendSession $* exit; fi done Note 1) The "otherwise" case starting a new Konsole is missing. Too lazy. :-) Note 2) Works only for Konsole instances started with "--script" parameter.
Ok, thanks for answer, I'm testing it now with Konsole 1.0.2 on KDE 2.2.2 and the --script parameter doesn't exist. I think it was added on KDE 3.x version of Konsole. isn't it? Reading the code I see one $* that will be the command and parameters to run it ;-) On KDE 2.2.2 dcop doesn't shows any line with konsole (now i have some konsole instances on my kde). I think it will be due to KDE2 or the missing --script parameter of my Konsole version. If it's so easy why not add it to official Konsole ?
Konsole/KDE 2.2 doesn't have this dcop functions. It's part of official Konsole (KDE 3.0.x), you just use an outdated version.
Ok, thanks for answer I will wait for official Debian KDE3 packages
*** Bug has been marked as fixed ***.