Commit Graph

319 Commits

Author SHA1 Message Date
Jesper
b0ab8320da Bring back apt search suggestions 2024-06-12 12:40:00 +02:00
Jesper
a31731f127 appGenericName, appComment and appExec to the fuzzysearch function 2024-06-12 12:19:05 +02:00
Jesper
2e0f503d08 Add appGenericName, appComment and appExec search 2024-06-12 11:51:31 +02:00
Jesper
3feda3af08 Exact search 2024-06-12 11:42:47 +02:00
Jesper
cf76c4837e Fuzzy Search 2024-06-12 10:37:26 +02:00
Michael Webster
c3bea70396
Add our own 'all applications' icon for consistency.
Fixes linuxmint/mint21.2-beta#12
2023-06-23 14:35:49 -04:00
Michael Webster
e4eab43d06
Use XAppGpuOffloadHelper for gpu offloading, respect
PrefersNonDefaultGPU desktop entry key.

XApp.util_gpu_offload_supported() is still used as a fallback
for older libxapp versions.
2023-05-10 11:52:02 -04:00
Clement Lefebvre
b08050dfbb Recent: Fix buttons layout
Fixes https://github.com/linuxmint/mint20.2-beta/issues/75
2021-07-01 13:38:23 +01:00
Vincent Vermeulen
9b96af6602 fix recently used documents sorting
recently used documents were incorrectly sorted on when a file was first added to recently-used.xbel file, not reflecting when it was opened again later
this fix changes it so they are sorted correctly on when they were last used (when last their entry was modified in recently-used.xbel)

fixes https://github.com/linuxmint/mint20.2-beta/issues/10
2021-06-23 15:03:21 -04:00
Vincent Vermeulen
57632a3e30 fix APT search
replace broken cgi.escape with working html.escape
2020-12-30 10:19:23 -05:00
Michael Webster
645c941b0b recentHelper.py: Don't try to modify the recent list unless recents
are enabled.

This was throwing an error when launching a program with the recent
plugin disabled.
2020-06-17 10:46:27 -04:00
Michael Webster
30ef26afa0 applications.py: Fix dnd for re-ordering/adding favorites.
Fixes https://github.com/linuxmint/mint20-beta/issues/22
2020-06-17 10:45:10 -04:00
Clement Lefebvre
e948102e58 Search: Fix searching for accentuated strings 2020-06-10 11:49:10 +01:00
Michael Webster
a819d570eb Support nvidia on-demand app launching.
Requires linuxmint/xapps@dcb600595d to function correctly.
2020-05-09 12:12:46 -04:00
Clement Lefebvre
1007793670 Fix typo in file path 2020-04-23 11:34:54 +01:00
Clement Lefebvre
4bbd037178
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:29:07 +01:00
Michael Webster
ff93497459 recent.py: Allow the clear button to apply to whichever tab is currently
active.
2020-03-30 19:31:45 -04:00
Michael Webster
6f69d0e499 Use gsettings for recent and favorite apps
during migration,
- rename the old favorites file
- delete the old recent file
2020-03-30 19:30:54 -04:00
Michael Webster
d694deb65e all: Use python3 2020-03-30 19:14:05 -04:00
Clement Lefebvre
3d38765734 Applications: Fix empty apps when a category has no icon 2019-09-26 09:57:10 +01:00
Clement Lefebvre
f1c321d255 RecentApp: Fix crash when location doesn't exist 2019-09-26 09:42:43 +01:00
monsta
210eaf0929 plugins: fix number of callback arguments (#236)
* system management: fix number of callback arguments

fixes runtime warning:
TypeError: changePluginSize() takes exactly 4 arguments (3 given)

looks like it was overlooked in 66f76df4d3

* places: remove leftover argument from callback
2019-08-19 15:23:46 +02:00
Clement Lefebvre
b7a1fa0b94 Remove support for custom colors
Since the move to GTK3 custom color support is extremely hacky and buggy:

- It relies on gtk_widget_override_color() which is deprecated
- Only one call to gtk_widget_override_color() is functional, successive
calls are ignored, leading to the menu not changing colors when the custom
colors are changed or enabled/disabled.
- RegenPlugins leads to a loss of color.
- Theme changes are broken due to overridden colors.

The feature is also very niche and quite unecessary. If a custom color is
better than the default one we should apply the change in the theme or
define a new theme which inherits ours and simply defines the menu
differently.

The way to do this, in line with GTK's design, is via CSS at theme level.
2019-07-22 13:30:59 +02:00
Clement Lefebvre
3ad195599b Fix crash on non-existing favorites
Corner case when rebuilding favs from scratch
2019-07-21 16:52:46 +02:00
Clement Lefebvre
42ef09742a Switch to symbolic icons 2019-07-21 16:01:50 +02:00
Clement Lefebvre
b41e843aa0 Fix default favorites not being created 2019-07-17 15:49:04 +02:00
Clement Lefebvre
b5f4789090 Applications: Port to GI MateMenu 2019-07-05 11:31:30 +02:00
Clement Lefebvre
66f76df4d3 Remove obsolete code 2019-05-20 15:44:26 +01:00
Clement Lefebvre
ca78764c13 Fix l10n
Move .ui to share folder
Fix makepot and translations
2019-05-20 14:50:32 +01:00
Clement Lefebvre
2a4267673d Revamp preferences
Use xapp widgets
Rewrite
2019-05-20 14:50:28 +01:00
Clement Lefebvre
476cf29d38 Add option to show search bar on top
Ported from https://github.com/linuxmint/mintmenu/pull/221
2019-05-14 17:15:42 +01:00
Clement Lefebvre
1984d57525 Fix tooltips and make them optional, remove category tooltips in apps
Ported from https://github.com/linuxmint/mintmenu/pull/226
2019-05-14 16:49:40 +01:00
Clement Lefebvre
65c9c3e003 Applications: Categories column always use natural width
Ported from https://github.com/linuxmint/mintmenu/pull/227
2019-05-14 14:20:37 +01:00
gm10
2e42cabf0a Applications: Replace the deprecated icon for adding packages (#216) 2019-02-20 10:24:34 +00:00
gm10
c2a0947dfd Applications: Replace deprecated xpad/ypad with margin-XYZ parameters (#218) 2019-02-20 10:24:19 +00:00
gm10
d5147caf9b Applications: Remove Search label (#217) 2019-02-20 10:24:04 +00:00
gm10
7504a11bba remove unused variables from favoritesBuildLauncher 2019-02-12 16:31:46 +00:00
gm10
37cd852738 Applications.py: Clean up more whitespace and line lengths 2019-02-12 16:31:43 +00:00
Clement Lefebvre
4ee04c3869 Fix msgids and glade files 2019-02-12 13:52:47 +00:00
gm10
8844d89cec Clean up i18n, remove unnecessary duplication 2019-02-12 13:52:47 +00: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
gm10
2f1329de7d Applications: Fix keypress event handler (#205)
* Applications: Fix keypress event handler

* further fix and simplify the keypress handler

* disconnect the keyPress handler when destroying the plugin
2019-01-21 15:37:01 +00:00
gm10
6f34ff8538 Places: Don't hardcode file browser (#204) 2019-01-21 15:20:00 +00:00
Clement Lefebvre
54e695b056 Fix RecentHelper spam in logs
When recent plugin is disabled, recentAppBox is None,
resulting in errors in the logs:

org.mate.panel.applet.MintMenuAppletFactory[1038]: File “/usr/lib/linuxmint/mintMenu/plugins/recentHelper.py”, line 130, in applicationButtonClicked
org.mate.panel.applet.MintMenuAppletFactory[1038]: doRecentApps()
org.mate.panel.applet.MintMenuAppletFactory[1038]: File “/usr/lib/linuxmint/mintMenu/plugins/recentHelper.py”, line 112, in doRecentApps
org.mate.panel.applet.MintMenuAppletFactory[1038]: for i in recentAppBox.get_children():
org.mate.panel.applet.MintMenuAppletFactory[1038]: AttributeError: ‘NoneType’ object has no attribute ‘get_children’
2018-06-08 12:19:59 +01:00
Clement Lefebvre
469eaf57e5 mint-remove-application: Don't use gksu
mint-common now uses pkexec internally
2018-03-13 15:05:17 +00:00
Vincent Vermeulen
5f190ceac9 Highlight previous search so typing overwrites it (#191)
* Highlight previous search so typing overwrites it

When set to remember the last search, on next opening the menu it would display the last search and put the cursor at the end of it. If you wanted to do a new search you would first have to delete your previous search. More convenient if you starting typing it overwrites the last search and only if you place the cursor with arrow keys or mouse it switches to insert / append text to the last search.

There was existing code that did in fact do that but it was in the wrong place. This patch puts it in the right place. Fixes #86.

* Remove code to set position at end

Because it doesn't do anything when you select all the text.
2018-03-09 15:45:25 +00:00
Vincent Vermeulen
448299efb2 safe apt search with shell escapes (#190)
This fixes #178.

add_apt_filter_results ran a command with keywords from the menu's Search entry without shell escaping. This made it possible to have it run shell commands by using command substitution. E.g. searching for `$(xeyes)` would run xeyes.

When/if mintmenu gets ported to Python3 pipes.quote should be replaced by shlex.quote.
2018-03-07 09:43:04 +00:00
Clement Lefebvre
73a412acea Don't run mintinstall as root
It now runs in user mode.
2017-11-12 14:33:42 +00:00
Hrotkó Gábor
de3aed33f8 Show recently used apps (#167)
Show recently used apps
2017-11-11 08:59:49 +00:00