AppImages aren't working correctly afterall.
This commit is contained in:
parent
50dac0aa58
commit
d61b1504a6
3 changed files with 13 additions and 5 deletions
|
|
@ -18,11 +18,14 @@ class Worker:
|
|||
self.result = None
|
||||
self.process = None
|
||||
self.child_pgid = None
|
||||
self.script_path = (os.path.join(
|
||||
os.environ["APPDIR"], "usr", "bin", "vigil-worker")
|
||||
if "APPDIR" in os.environ else "vigil-worker")
|
||||
|
||||
@asyncio.coroutine
|
||||
def create_process(self):
|
||||
create = asyncio.create_subprocess_exec(
|
||||
"vigil-worker", stdin=asyncio.subprocess.PIPE,
|
||||
self.script_path, stdin=asyncio.subprocess.PIPE,
|
||||
stdout=asyncio.subprocess.PIPE, stderr=asyncio.subprocess.PIPE,
|
||||
preexec_fn=os.setsid)
|
||||
self.process = yield from create
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue