rdonnelly wrote:I found you can also do Menu Preferences>Applications then deselect>Search for packages to install.
Doesn't work for me, this setting seems to be ignored.
Moderator: emorrp1
rdonnelly wrote:I found you can also do Menu Preferences>Applications then deselect>Search for packages to install.

adefigo wrote:rdonnelly wrote:I found you can also do Menu Preferences>Applications then deselect>Search for packages to install.
Doesn't work for me, this setting seems to be ignored.




adefigo wrote:rdonnelly wrote:I found you can also do Menu Preferences>Applications then deselect>Search for packages to install.
Doesn't work for me, this setting seems to be ignored.

adefigo wrote:Quick and dirty fix:
in /usr/lib/linuxmint/mintMenu/plugins/applications.py
line 797 - 803 comment out the lines starting with thr
- Code: Select all
if self.current_suggestion is not None and self.current_suggestion in text:
# We're restricting our search...
self.add_search_suggestions(text)
#if (len(self.current_results) > 0):
#self.add_apt_filter_results_sync(self.current_results, text)
#else:
#thr = threading.Thread(name="mint-menu-apt-filter", group=None, target=self.add_apt_filter_results, args=([text]), kwargs={})
#thr.start()
else:
self.current_results = []
self.add_search_suggestions(text)
#thr = threading.Thread(name="mint-menu-apt-filter", group=None, target=self.add_apt_filter_results, args=([text]), kwargs={})
#thr.start()
and re-login.
The menu is finally usable.


yet_another_username wrote:So, what's the status for this fix? I'm very thankful to adefigo for his fix, which worked for me. However, I'm hesitant to recommend Mint to other users because of this bug. I myself just moved to Mint from OpenSuSE, and other than this particular bug, I've been far happier with Mint. However, I don't want to recommend this to other people if their computer is going to freeze. And, for those who migrate from Windows and decide to give Linux a chance, something like this could give them a bad impression of Linux as a whole.


wayne128 wrote:I tried few times
It did not work for me. Still hang with CPU100%

killall mintmenu


adefigo wrote:Quick and dirty fix:
in /usr/lib/linuxmint/mintMenu/plugins/applications.py
line 797 - 803 comment out the lines starting with thr
- Code: Select all
if self.current_suggestion is not None and self.current_suggestion in text:
# We're restricting our search...
self.add_search_suggestions(text)
#if (len(self.current_results) > 0):
#self.add_apt_filter_results_sync(self.current_results, text)
#else:
#thr = threading.Thread(name="mint-menu-apt-filter", group=None, target=self.add_apt_filter_results, args=([text]), kwargs={})
#thr.start()
else:
self.current_results = []
self.add_search_suggestions(text)
#thr = threading.Thread(name="mint-menu-apt-filter", group=None, target=self.add_apt_filter_results, args=([text]), kwargs={})
#thr.start()
and re-login.
The menu is finally usable.




gksu gedit /usr/lib/linuxmint/mintMenu/plugins/applications.py


adefigo wrote:Quick and dirty fix:
in /usr/lib/linuxmint/mintMenu/plugins/applications.py
line 797 - 803 comment out the lines starting with thr
- Code: Select all
if self.current_suggestion is not None and self.current_suggestion in text:
# We're restricting our search...
self.add_search_suggestions(text)
#if (len(self.current_results) > 0):
#self.add_apt_filter_results_sync(self.current_results, text)
#else:
#thr = threading.Thread(name="mint-menu-apt-filter", group=None, target=self.add_apt_filter_results, args=([text]), kwargs={})
#thr.start()
else:
self.current_results = []
self.add_search_suggestions(text)
#thr = threading.Thread(name="mint-menu-apt-filter", group=None, target=self.add_apt_filter_results, args=([text]), kwargs={})
#thr.start()
That's great!![]()
This was the only thing that works, but with no package search![]()
By the way, not necessary to find "thr" at the same lines mentioned, mine was 1 or 2 lines different, but I noticed that from the editor you can search for thr without quotes, all what is found I commented out.
Maybe any other or complementary solution to keep package search?
P.S. disabeling search for packages only didn't work for me.
and re-login.
The menu is finally usable.


Darksun wrote:Is there any word on an official fix? The code workaround works for me, but I quite like being able to search packages from the mintMenu (when it doesn't freeze) so it's a shame to lose this feature.
Also, it is possible to recover from this crash without resetting X/the computer by dropping into a terminal and killing the mintMenu process.
If you don't know how to do that: press ctrl-alt-F1 to switch to terminal 1. Log in, and type
- Code: Select all
killall mintmenu
Press ctrl-alt-F7 to switch back to your desktop. A dialogue will pop up asking if you want to reload mintMenu, click to reload and all should be well (till next time you try typing in a common word into the menu)


Users browsing this forum: No registered users and 1 guest