diff options
-rw-r--r-- | NEWS | 3 | ||||
-rwxr-xr-x | draksnapshot-applet | 4 |
2 files changed, 7 insertions, 0 deletions
@@ -1,3 +1,6 @@ +- applet: + o prevent running twice the same applet + Version 0.11 - 24 June 2008, Thierry Vignaud - applet: diff --git a/draksnapshot-applet b/draksnapshot-applet index 7fabdbe..35634f7 100755 --- a/draksnapshot-applet +++ b/draksnapshot-applet @@ -41,6 +41,10 @@ use ugtk2 qw(:all); use lib qw(/usr/lib/libDrakX/drakfirsttime); use Gtk2::Notify '-init', 'draksnapshot'; +if (my $pid = is_running('draksnapshot-ap')) { + die "draksnapshot-applet already running ($pid)\n"; +} + ugtk2::add_icon_path("/usr/share/draksnapshot/pixmaps/"); my $menu; |