diff --git a/extensions/fablabchemnitz/animate_order/animate_order.py b/extensions/fablabchemnitz/animate_order/animate_order.py index efa8203a..f0b706df 100644 --- a/extensions/fablabchemnitz/animate_order/animate_order.py +++ b/extensions/fablabchemnitz/animate_order/animate_order.py @@ -6,7 +6,6 @@ import shutil import os import sys import warnings -import shlex """ Extension for InkScape 1.X @@ -41,9 +40,7 @@ class AnimateOrder (inkex.EffectExtension): if os.name == 'nt': subprocess.Popen(args, close_fds=True, creationflags=DETACHED_PROCESS) else: - cmd = "nohup " + " ".join(args) + " &" - cmds = shlex.split(cmd) - subprocess.Popen(cmds, start_new_session=True, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL) + subprocess.Popen(args, start_new_session=True, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL) warnings.simplefilter("default", ResourceWarning) def add_arguments(self, pars): diff --git a/extensions/fablabchemnitz/export_selection/export_selection.py b/extensions/fablabchemnitz/export_selection/export_selection.py index 67b5a2a8..dc17f784 100644 --- a/extensions/fablabchemnitz/export_selection/export_selection.py +++ b/extensions/fablabchemnitz/export_selection/export_selection.py @@ -8,7 +8,6 @@ import os import sys import subprocess from subprocess import Popen, PIPE -import shlex import warnings import inkex import inkex.command @@ -47,9 +46,7 @@ class ExportObject(inkex.EffectExtension): if os.name == 'nt': Popen(["inkscape", file], close_fds=True, creationflags=DETACHED_PROCESS) else: - cmd = "nohup inkscape " + file + " &" - cmds = shlex.split(cmd) - subprocess.Popen(cmds, start_new_session=True, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL) + subprocess.Popen(["inkscape", file], start_new_session=True, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL) warnings.simplefilter("default", ResourceWarning) def effect(self):