[mintmenu] searches use only first term

Bug #399279 reported by emorrp1
4
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Linux Mint
Fix Released
Medium
Clement Lefebvre

Bug Description

Discovered when trying to turn a portal search into a google search: All the search suggestions use sys.argv[1] to get the search text, but if the search text contains spaces, only the first term will be found. This is particularly evident when looking at /usr/bin/mint-search-portal, as it attempts to replaces spaces with underscores later, so this line currently does absolutely nothing.

Suggested solution - in each of the tools replace sys.argv[1] with "CHAR".join(sys.argv[1:]), where CHAR is the joining character, e.g. _ for portal, - for apt based ones. This solution is better than just stripping the spaces in the applications plugin file as each tool can define its own concatenation (useful for e.g. google search using +), and enables the tools to be used independently of mintMenu.

mintMenu v4.7.6
Linux Mint Gloria

http://forums.linuxmint.com/viewtopic.php?f=165&t=27622

Tags: mintmenu
emorrp1 (emorrp1)
summary: - [mintMenu] searches use only first term
+ [mintmenu] searches use only first term
Changed in linuxmint:
assignee: Clement Lefebvre (clementlefebvre) → nobody
milestone: helena-rc1 → none
description: updated
Revision history for this message
emorrp1 (emorrp1) wrote :

Triaged since source-code changes exist

Changed in linuxmint:
status: Confirmed → Triaged
Changed in linuxmint:
assignee: nobody → Clement Lefebvre (clementlefebvre)
Changed in linuxmint:
milestone: none → julia-rc1
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.