Summary: | Need "execute command in new tab" command-line option and DCOP interface | ||
---|---|---|---|
Product: | [Applications] konsole | Reporter: | Tristan Miller <psychonaut> |
Component: | general | Assignee: | Konsole Developer <konsole-devel> |
Status: | RESOLVED WORKSFORME | ||
Severity: | wishlist | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | openSUSE | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
Tristan Miller
2006-05-04 05:51:47 UTC
konsole --script All you want is possible with DCOP. I note that this bug report gets reported every couple years. http://lists.kde.org/?l=konsole-devel&w=2&r=1&s=sendSession&q=b konsole --script will allow me to open a new konsole with a command. What's conspicuously absent is the ability to target a konsole (by pid) and open several sessions with different commands sent to each. This was possible with sendSession. application=$(echo $KONSOLE_DCOP_SESSION | cut -d '(' -f 2 | cut -d ',' -f 1); for mbox in inbox public-rdf-dawg public-rdf-dawg-comments ; do function=$(dcop $application konsole newSession 'mutt -f mail/$mbox'); dcop $application $function sendSession 'mutt -f mail/$mbox'; dcop $application $function renameSession $mbox; done At this point, the extra arg to newSession is ignored (unless it's some keyword like "su"? possibly set in a conf file?) and sendSession is unsupported. I am using konsole 1.6.5 on KDE 3.5.5 distributed by debian package konsole-3.5.5a.dfsg.1-3 . I have not researched whether debian has specifically disabled the sendSession feature, but it seems to be frequenly reported here. fyi, I just figured out why my konsoles weren't allowing me to use sendSession() too -- I'll note it here for Eric (and posterity). as Thiago obliquely hinted, you need to _start_ the konsoles using the --script switch for those DCOP calls to be available; if that switch was not specified, they won't allow it and the API will appear to be unsupported. |