Commit Graph

20 Commits

Author SHA1 Message Date
Clement Lefebvre
28c7126bba Fix launching pkexec applications
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:15:48 +01:00
gm10
3c6e384a1d Assorted cleanup, fixes and performance improvements (#206)
* initial cleanup with some debug messaging

* further cleanup, mostly coding style

* - more cleanup, and speed-up
- more fixes, including many icon and encoding related issues
- replace some icons and remove compile.py
- prepare for python3 port as much as possible

* remove some more unneeded files, few left-over cleanups

* move some external scripts to python3 already

* Fix and clean up add_search_suggestions and add_apt_filter_results logic

* more cleanup, thx Codacity

* fix issue with a path

* add a killall to the test script, fix a method declaration

* fix custom colour setting

* keybinding: re-add GdkX11

* re-add mint-common dep

* Use os.path.expanduser("~") instead of os.environ

* revert re-add GdkX11, but import Gtk first
2019-02-11 13:54:20 +00:00
Andrew
d3ce506d45 Fix broke running with "xdg-su" in exec field (#200) 2019-01-21 15:50:58 +00:00
Leigh Scott
ce675497d1 fix indent (#183) 2017-08-26 17:35:45 +02:00
Clement Lefebvre
2373274304 Fix launching apps which use su-to-root
This was removed by mistake during the port to GTK3.
2017-05-02 13:07:29 +01:00
leigh123linux
150e02c0a0 gtk3 2016-09-06 15:58:34 +01:00
Clement Lefebvre
877ce3640b Fixed indentation and trailing spaces 2016-05-21 17:11:36 +01:00
James Lu
d004409af9 Coerse shebangs to #!/usr/bin/python2
Arch Linux's default "python" install points to Python 3, and mintmenu is certainly not compatible with it!

Closes #134.
2015-06-25 17:44:30 -07:00
Clement Lefebvre
de10e5bd84 Fixed ubiquity not launching from mintmenu 2015-06-14 13:37:04 +02:00
monsta
30dd193169 removed unused stuff 2014-11-03 20:43:03 +03:00
Clement Lefebvre
b58e617446 Use /usr/bin/python always 2014-07-07 11:49:32 +02:00
raveit65
b6bd121925 add some missing shbangs 2014-03-28 16:44:13 +01:00
Clement Lefebvre
9e8c4d9a22 Don't crash when failing to manually launch an application 2014-01-20 15:08:35 +00:00
Clement Lefebvre
d8372a6846 When launching apps, use os.system instead of popen so children don't end up in zombie waiting for us to wait() for them 2013-11-25 14:04:49 +00:00
Clement Lefebvre
0211675202 Merge branch 'cwd-fix' of https://github.com/xwizard/mintmenu into xwizard-cwd-fix
Conflicts:
	usr/lib/linuxmint/mintMenu/plugins/execute.py
2013-11-25 12:58:37 +00:00
Yuya Kusakabe
097af08da9 Update usr/lib/linuxmint/mintMenu/plugins/execute.py
Patch for bug #1127710 (https://bugs.launchpad.net/linuxmint/+bug/1127710)
2013-02-17 11:52:18 +09:00
xwizard
8e0c79261b Adds support for Desktop Enty's Path
Fixes https://bugs.launchpad.net/linuxmint/+bug/1120639
Changes:
- Added appPath to ApplicationLauncher in easybutton.py
- Added new commandCwd argument to Exec in execute.py (defaults to None)
- ApplicationLauncher.execute() now passes CWD to execute.Exec
2013-02-10 17:31:00 +01:00
Clement Lefebvre
026b550af3 Fixed launching apps containing quotes 2010-09-23 11:15:09 +01:00
Clement Lefebvre
a000ed1a2a Fixed execute problems with su-to-root 2009-12-15 11:28:28 +00:00
Clement Lefebvre
e4e01974bb Initial commit 2009-07-27 12:45:34 +02:00