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

Dale Stein dstein2000 at gmail.com
Sat Mar 5 21:21:46 GMT 2011


On Sat, Mar 5, 2011 at 12:18 PM, Dotan Cohen <dotancohen at gmail.com> wrote:

> On Sat, Mar 5, 2011 at 19:57, Duncan <1i5t5.duncan at cox.net> wrote:
> > Try the pgrep (process grep) command for your first bit. =:^)
> >
>
> Thanks.
>
> > 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. =:^)
> >
>
> Yes!
>
>
> > 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
>
> http://gibberish.co.il
> http://what-is-what.com
> ___________________________________________________
>  This message is from the kde mailing list.
> Account management:  https://mail.kde.org/mailman/listinfo/kde.
> Archives: http://lists.kde.org/.
> More info: http://www.kde.org/faq.html.
>

Personally,
I rather have many instances of the same application,  I tend to close one
and loose the others with it.  Flush.  Just Like Microsoft!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde/attachments/20110305/1fd1cdf3/attachment.htm>
-------------- next part --------------
___________________________________________________
This message is from the kde mailing list.
Account management:  https://mail.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.


More information about the kde mailing list