Jun-21-2017, 10:31 PM
As described, you can't, because when a process exits, all its child processes are killed.
So the trick is therefore to have the new process started by the desktop process, which remains up until the user logs off. IIRC in Windows this is what the
Btw, you can divide by two the wear of your backslash key in several ways:
So the trick is therefore to have the new process started by the desktop process, which remains up until the user logs off. IIRC in Windows this is what the
START
command does, so you would use, if start
is a distinct executable:run_argList = ["start","C:\\Program Files\\LibreOffice 5\\program\\scalc.exe",saveFileName]or if
start
is a built-in command to cmd.exe
run_argList = ["cmd.exe","/c" "start","C:\\Program Files\\LibreOffice 5\\program\\scalc.exe",saveFileName]in which cas you can likely simplify this to:
run_argList = ["cmd","/c" "start","scalc",saveFileName]and let
cmd.exe
figure out what/where scalc
is. Btw, you can divide by two the wear of your backslash key in several ways:
- use a "raw" string specification by prefixing the string with
r
r"C:\Program Files\LibreOffice 5\program\scalc.exe"
- use a "raw" string specification by using triple quotes
'''C:\Program Files\LibreOffice 5\program\scalc.exe'''
- learning that Windows is perfectly happy with forward slashes(only the CMD.EXE argument parser doesn't like them)
'C:/Program Files/LibreOffice 5/program/scalc.exe'
(of course if you use cmd.exe in the call above you can't use that form, but you normally don't need the path).
Unless noted otherwise, code in my posts should be understood as "coding suggestions", and its use may require more neurones than the two necessary for Ctrl-C/Ctrl-V.
Your one-stop place for all your GIMP needs: gimp-forum.net
Your one-stop place for all your GIMP needs: gimp-forum.net