Menu click: focus already-open instance if running
Dotan Cohen
dotancohen at gmail.com
Wed Sep 22 16:33:42 UTC 2010
I support quite a few [K]Ubuntu installs, and a recurring problem that
I see is users opening many instances of a program. This mostly
applies to elderly users.
I am thinking about writing a script to wrap common applications
(Skype and Firefox, for instance) that would grep the running
processes for an instance, and if there is one then to focus that
instance. Only if there is no current instance should a new instance
be created. However, I am at a loss for how to actually do the focus.
A shell script would grep ps, but how to focus the app?
I CC the Ubuntu and Kubuntu lists, as the solution for Gnome and for
KDE might be different. Thanks!
--
Dotan Cohen
http://gibberish.co.il
http://what-is-what.com
More information about the kubuntu-users
mailing list