summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaouda Lo <daouda@mandriva.com>2005-03-11 13:20:23 +0000
committerDaouda Lo <daouda@mandriva.com>2005-03-11 13:20:23 +0000
commit525b7bc2da9364e323650eb6ac66a2beeb331e2c (patch)
tree3d487702f059ad210a5c4da52b70bbde68ad5735
parentb6aca9f143f5900f88d52e468aaa49dc8ddd7da7 (diff)
downloadmgaonline-525b7bc2da9364e323650eb6ac66a2beeb331e2c.tar
mgaonline-525b7bc2da9364e323650eb6ac66a2beeb331e2c.tar.gz
mgaonline-525b7bc2da9364e323650eb6ac66a2beeb331e2c.tar.bz2
mgaonline-525b7bc2da9364e323650eb6ac66a2beeb331e2c.tar.xz
mgaonline-525b7bc2da9364e323650eb6ac66a2beeb331e2c.zip
- is_running
-rwxr-xr-xmdkapplet4
1 files changed, 2 insertions, 2 deletions
diff --git a/mdkapplet b/mdkapplet
index 606855e6..7c45060d 100755
--- a/mdkapplet
+++ b/mdkapplet
@@ -35,6 +35,8 @@ use lib qw(/usr/lib/libDrakX/drakfirsttime);
use mdkonline;
use Gtk2::TrayIcon;
+mdkonline::is_running('mdkapplet') and die "mdkapplet already running\n";
+
my $in = interactive->vnew('');
ugtk2::add_icon_path("/usr/share/mdkonline/pixmaps/");
@@ -53,8 +55,6 @@ my $localfile = "$localdir/mdkonline";
mkdir_p($localdir) if !-d $localdir;
-e "$ENV{HOME}/.mdkonline" and system("mv", "$ENV{HOME}/.mdkonline", $localfile);
-mdkonline::is_running('mdkapplet') and die "mdkapplet already running\n";
-
my %state = (
okay => {
colour => [ 'okay' ],