Re: [Evolution] Only one instance..
- From: Lisandro <lichig gmail com>
- To: evolution-list gnome org
- Subject: Re: [Evolution] Only one instance..
- Date: Fri, 10 Aug 2007 14:55:24 -0300
I reply to my self, I made this Perl script based on the
Evonotify script (from Oliver Grawert) :
#!/usr/bin/perl
use Gnome2;
use Gnome2::Wnck;
Gtk2->init();
$stamp = time;
$screen = Gnome2::Wnck::Screen->get_default();
$screen->force_update();
foreach $window ($screen->get_windows()) {
if ($window->get_name =~ /Evolution/) {
$evolution = $window;
}
}
if($evolution) {
$evolution->unminimize($stamp);
$evolution->get_workspace->activate($stamp);
$evolution->activate($stamp);
print $evolution->get_geometry;
}
else {
system('evolution');
}
Gtk2->main_iteration() while (Gtk2->events_pending());
Gtk2->main();
Regards!
Lisandro Grassini.
On 7/28/07, Lisandro <lichig AT gmail.com> wrote:
Hi everybody,
How can I do to re-open (bring to focus) a previously launched
instance of Evolution (if I have one) instead of open a new instance?
thanks in advance.
Lisandro.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]