View Full Version : [SOLVED] Reliably Launch or Focus One Instance of an Application in Gnome 2.x

April 19th, 2011, 02:23 AM
Gnome 2.x does not reliably focus an already running application if launched from the command line or keyboard shortcut. The attached script fixes that problem. The comments are verbose because I was working it up for my blog.

I'm still learning bash. If someone can tell me why parens are required to enclose the boolean at line 26 instead of the usual square brackets, I'd be much obliged.