myuser 17616 13139 0 19:36 pts/2 00:00:00 /home/xxx/test5
myuser 17626 17616 0 19:37 pts/2 00:00:00 [xdg-open] <defunct>
myuser 17809 17616 0 19:39 pts/2 00:00:00 [xdg-open] <defunct>
OpenDocument('/home/me/Documents/text.txt');
works ok on my system.
xdg-open starts, then text editor opens, then xdg-open finishes. Everything is as intended.
$ ps -ef | grep -i defunct
mysuser 12903 12887 0 10:30 pts/1 00:00:00 [xdg-open] <defunct>
You need to kill the Night King. That gets rid of all the whitewalkers and zombies
After the editor starts, but before closing your calling Lazarus program, do you have any zombie processes in the system?
Maybe that bug is something to do with console handles. Try adding poshell.There is no poShell here:
As I said before there's no defunct processes left: xdg-open finishes itself after associated text editor started. I watched this in htop.Maybe your version of xdg-open is different. Mine is: xdg-open 1.1.3
But some googling reveals there are possible bugs in xdg-open itself: probably it depends on system configuration or launched process.
Maybe your version of xdg-open is different. Mine is: xdg-open 1.1.3