summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortv <tv@99302b65-d5f7-0310-b3dd-f8cd6f4e3d94>2008-08-07 07:32:01 +0000
committertv <tv@99302b65-d5f7-0310-b3dd-f8cd6f4e3d94>2008-08-07 07:32:01 +0000
commita2a9dd748b51f5d98416ae498973b01a513824c4 (patch)
treed96752dba796701b1389a82129eeb96623bfdc26
parenteb43ffb1552ea4f72f1305433d22d9f5312ec4f1 (diff)
downloaddraksnapshot-a2a9dd748b51f5d98416ae498973b01a513824c4.tar
draksnapshot-a2a9dd748b51f5d98416ae498973b01a513824c4.tar.gz
draksnapshot-a2a9dd748b51f5d98416ae498973b01a513824c4.tar.bz2
draksnapshot-a2a9dd748b51f5d98416ae498973b01a513824c4.tar.xz
draksnapshot-a2a9dd748b51f5d98416ae498973b01a513824c4.zip
prevent running twice the same applet
git-svn-id: http://svn.mandriva.com/svn/soft/draksnapshot/trunk@243831 99302b65-d5f7-0310-b3dd-f8cd6f4e3d94
-rw-r--r--NEWS3
-rwxr-xr-xdraksnapshot-applet4
2 files changed, 7 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index af20274..7346457 100644
--- a/NEWS
+++ b/NEWS
@@ -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;