From a2a9dd748b51f5d98416ae498973b01a513824c4 Mon Sep 17 00:00:00 2001 From: tv Date: Thu, 7 Aug 2008 07:32:01 +0000 Subject: prevent running twice the same applet git-svn-id: http://svn.mandriva.com/svn/soft/draksnapshot/trunk@243831 99302b65-d5f7-0310-b3dd-f8cd6f4e3d94 --- draksnapshot-applet | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'draksnapshot-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; -- cgit v1.2.1