[Konsole-devel] [Bug 126702] Need "execute command in new tab" command-line option and DCOP interface

Eric Prud'hommeaux eric+kde at w3.org
Wed Dec 20 17:20:34 UTC 2006


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=126702         




------- Additional Comments From eric+kde w3 org  2006-12-20 18:20 -------
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.



More information about the konsole-devel mailing list