mintmenu/usr
Clement Lefebvre e9d8a23e72 Fix launching pkexec applications (#248)
When launching mintsources, timeshift or an app which Exec field (in the desktop file)
starts with pkexec, nothing happens and the output states:

"Refusing to render service to dead parents."

For some reason this does not happen on fresh LMDE 4 and Mint 19.3 installations,
but it happens on LMDE 3 -> LMDE 4 and 19.1 -> 19.3 upgrades.

Similar bugs were fixed in nemo and cinnamon. Pkexec is known to cause issues
depending on how it's launched.

Specifying DO_NOT_REAP_CHILD in the spawn flags helps here. Afaik it makes it so
we're the parent of the pkexec process during launch. Pkexec fails to launch
otherwise.

gather_pid_callback() does nothing, it's just there to ack the pid callback. Afaik
this helps preventing zombie [defunct] processes when they terminate.
2020-03-31 12:33:43 +01:00
..
bin Coerse shebangs to #!/usr/bin/python2 2015-06-25 17:44:30 -07:00
lib/linuxmint/mintMenu Fix launching pkexec applications (#248) 2020-03-31 12:33:43 +01:00
share Add menu icon selection 2019-11-19 14:00:10 +00:00