Focusing konsole window (was: inserting table into konsole)

Michael Mauch michael.mauch at
Wed Aug 15 19:34:02 BST 2007

Ainsley Pereira wrote:
> On Tue, Aug 14, 2007 at 03:14:33PM +0200, pol wrote:
>> That script would be useful, if you can, please send it.
> #!/bin/bash
> function startSession()
> {
>        KID=$1
>        NAME=$2
>        SID=$(dcop konsole-$KID konsole newSession)
>        dcop konsole-$KID $SID renameSession $NAME
> }
> konsole &
> KID=$!
> sleep 1
> startSession $KID Foo
> startSession $KID Bar
> startSession $KID Baz
> dcop konsole-$KID session-1 closeSession

While we're at the topic of dcop fun with konsole:

Is it possible to set the focus to an existing konsole window?
I tried with

  dcop "$konsole" "konsole-mainwindow#1" raise

where $konsole is the correct konsole window, but the "raise" really
only raises the window, but leaves the focus on the previously focussed

  dcop "$konsole" konsole activateSession "$session"

only activates the session, i.e. it puts the tab in the foreground.


This message is from the kde mailing list.
Account management:
More info:

More information about the kde mailing list