[Evolution] stopping multiple instances of evolution



Hello,

I live out of Evolution, but have one issue that drives me nuts.  I work
on 4 workspace and am often flipping around from one to the other.  I
forget sometimes if and where evolution is running. If it's already
running on another workspace when I try an launch it, the second copy
kind of kind of locks up for about 12 seconds while flashing away in the
title bar.

Does this annoy anyone else?  Any fixes?

I tried this script, but it doesn't seem to work:

#!/usr/bin/perl
use Gnome2;
use Gnome2::Wnck;
Gtk2->init();

# get evo wnck window to unminimize on click
my ($evo);
my $screen = Gnome2::Wnck::Screen->get_default();
$screen->force_update();
foreach my $line ($screen->get_windows()) {
    my $stamp = localtime(time);
    if ($line->get_name =~ /Evolution/) {
        $evo = $line;
    }
}
if ($evo) {
    $evo->unminimize($stamp);
    $evo->get_workspace->activate($stamp);
    $evo->activate($stamp);
} else {
    system('evolution');
}


Thanks,
-J




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]