aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rwxr-xr-xlib/isodumper.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/isodumper.py b/lib/isodumper.py
index 38a41a4..797c551 100755
--- a/lib/isodumper.py
+++ b/lib/isodumper.py
@@ -48,6 +48,8 @@ from subprocess import call, Popen, PIPE
from pydbus import SystemBus
from gi.repository import GLib
+import psutil
+
class NoUDisks2(Exception):
pass
@@ -440,6 +442,12 @@ 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',))
+ for pid in psutil.pids():
+ p = psutil.Process(pid)
+ if p.name() == "isodumper" :
+ raise(Exception(_("There is another instance of Isodumper already running.")))
+
+
#TODO Read log level from command line
# define size of the selected device