Been tinkering tonight but am unable to find a solution.
I've written a small script that I call with a "popup-shell" and that uses fzf
to select a file. I pass this file to marktext
appimage and disown the process, after which the "popup-shell" closes. Unfortunately, upon shell closure, the marktext
app is also closed.
I think the problem lies in that the executable is properly disowned, but the appimage mount-stuff is still subprocessing to the "popup-shell". Once the "popup-shell" close, so does the appimage mount-stuff, which in turn will cause marktext
to close.
process-tree-ish:
popup-shell
+- script that spawns marktext appimage
| +- /tmp/.mount_markXXXXX/marktext ...
| | +- /tmp/.mount_markXXXXX/marktext ...
| | +- /tmp/.mount_markXXXXX/marktext ...
| | +- /tmp/.mount_markXXXXX/marktext ...
| +- /tmp/.mount_markXXXXX/marktext ...
| | +- /tmp/.mount_markXXXXX/marktext ...
| +- /tmp/.mount_markXXXXX/marktext ...
| +- /tmp/.mount_markXXXXX/marktext ...
marktext ...
The actual marktext
binary seems to have been properly disowned.
The script isn't complicated and just run:
marktext <file> &
disown -h %1
Any pointers would be much appreciated.