summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2006-03-29 22:06:29 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2006-03-29 22:06:29 +0000
commit549e946eac3f8708b44cd94467705ccccf66ee67 (patch)
tree67f01f2fc2e0ec4ea16dcd106e599a46d7d97d3a
parent4e7a51a51e3444b9679fe619449745d04aabfaed (diff)
downloadmgaonline-549e946eac3f8708b44cd94467705ccccf66ee67.tar
mgaonline-549e946eac3f8708b44cd94467705ccccf66ee67.tar.gz
mgaonline-549e946eac3f8708b44cd94467705ccccf66ee67.tar.bz2
mgaonline-549e946eac3f8708b44cd94467705ccccf66ee67.tar.xz
mgaonline-549e946eac3f8708b44cd94467705ccccf66ee67.zip
display the pid of the already running applet
-rwxr-xr-xmdkapplet3
1 files changed, 2 insertions, 1 deletions
diff --git a/mdkapplet b/mdkapplet
index 90719097..cc30290d 100755
--- a/mdkapplet
+++ b/mdkapplet
@@ -38,7 +38,8 @@ use mdkonline;
use Gtk2::TrayIcon;
use Gtk2::NotificationBubble;
-mdkonline::is_running('mdkapplet') and die "mdkapplet already running\n";
+my $pid = mdkonline::is_running('mdkapplet');
+$pid and die "mdkapplet already running ($pid)\n";
my $in = interactive->vnew('');