aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xlib/isodumper.py11
1 files changed, 8 insertions, 3 deletions
diff --git a/lib/isodumper.py b/lib/isodumper.py
index 1110ac0..d93a9c0 100755
--- a/lib/isodumper.py
+++ b/lib/isodumper.py
@@ -108,7 +108,7 @@ class Info(object):
class IsoDumper(object):
- RELEASE="v1.11"
+ RELEASE="v1.12"
def get_devices(self):
self.list=self.u.find_devices()
@@ -442,10 +442,15 @@ NTFS or ext. You can specify a volume name and the format in a new dialog box.<B
# Call translation catalog
gettext.install(APP, localedir=DIR, names=('ngettext',))
+ #Check that there is no other instance running
+ current_pid = psutil.Process().pid
for pid in psutil.pids():
p = psutil.Process(pid)
- if p.name() == "isodumper" :
- raise(Exception(_("There is another instance of Isodumper already running.")))
+ if p.name() == "isodumper" and p.pid != current_pid :
+ info = Info(_("Error"),True,_("There is another instance of Isodumper already running."))
+ self.ask_OK(info)
+ yui.YUILoader.deleteUI()
+ exit()
#TODO Read log level from command line