Summary: | Konsole: open command in new shell | ||
---|---|---|---|
Product: | [Applications] konsole | Reporter: | NetVicious |
Component: | general | Assignee: | Konsole Developer <konsole-devel> |
Status: | RESOLVED FIXED | ||
Severity: | wishlist | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Debian testing | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
NetVicious
2003-01-13 01:19:32 UTC
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 ***. |