How to set up Menu items such that if an instance is already running, the running instance is brought to the foreground?

Dotan Cohen dotancohen at
Sat Mar 5 18:18:11 GMT 2011

On Sat, Mar 5, 2011 at 19:57, Duncan <1i5t5.duncan at> wrote:
> Try the pgrep (process grep) command for your first bit. =:^)


> But for window manipulation... as it happens I just needed such a thing
> and thus have the perfect app for you!  wmctrl ! It handles... switching
> to the appropriate desktop, activating, moving/resizing, maximizing X/Y/
> both, closing... more.  And since it operates with window titles or
> windowclasses (you can use kwin's window rules click-to-autodetect feature
> to find this), you shouldn't even need the pgrep step. =:^)


> Both the above have manpages... and while the wmctrl manpage suggests
> zenity, a gnome dialog scripting app, for adding more interactivity
> (wouldn't be needed for your current use, but...), the kde alternative for
> that is of course kdialog, which I've used myself.  kdialog is a bit
> quirky (reminds me of the MS Windows 2 era), resulting in several
> successive single-purpose popup windows instead of the more typical multi-
> purpose dialog window, but it does get the job done, allowing you to
> present a UI with which to select or type things in, if that's needed.

Thanks, I will head on over to the fine manuals that you mention. Have
a great week!

And I see that you are feeling better! The whole message fit on a page!

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

More information about the kde mailing list