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.
[solved] mintMenu 4.7.8 - searches use only first term
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions use the other forums in the support section.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions use the other forums in the support section.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
[solved] mintMenu 4.7.8 - searches use only first term
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Re: mintMenu 4.7.6 - search suggestions use only first term
This has been independently confirmed: http://forums.linuxmint.com/viewtopic.php?f=165&t=27758
Note that his solution, while acceptable, is significantly slower than the join method.
Note that his solution, while acceptable, is significantly slower than the join method.