mintMenu fails on load

Bug #1266751 reported by VitalD
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Linux Mint
Fix Released
Undecided
Unassigned

Bug Description

1) Linux Mint 16
2) When I add mintMenu on panel I see error window which contained following:
Traceback (most recent call last):

  File "/usr/lib/linuxmint/mintMenu/mintMenu.py", line 330, in PopulatePlugins
    MyPlugin.do_plugin()

  File "/usr/lib/linuxmint/mintMenu/plugins/applications.py", line 1334, in do_plugin
    self.Todos()

  File "/usr/lib/linuxmint/mintMenu/plugins/applications.py", line 583, in Todos
    self.buildButtonList()

  File "/usr/lib/linuxmint/mintMenu/plugins/applications.py", line 603, in buildButtonList
    self.updateBoxes(False)

  File "/usr/lib/linuxmint/mintMenu/plugins/applications.py", line 1740, in updateBoxes
    item["button"] = MenuApplicationLauncher( item["entry"].get_desktop_file_path(), self.iconSize, item["category"], self.showapplicationcomments, highlight=(True and menu_has_changed) )

  File "/usr/lib/linuxmint/mintMenu/plugins/easybuttons.py", line 481, in __init__
    ApplicationLauncher.__init__( self, desktopFile, iconSize )

  File "/usr/lib/linuxmint/mintMenu/plugins/easybuttons.py", line 281, in __init__
    c = c_char_p(iconName.encode('ascii', 'ignore'))

UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position 13: ordinal not in range(128)

3) I click "OK" and there is no any application in mintMenu, just empty categories.
5) It happens always

I think that it because of localization (I use Russian language)

Revision history for this message
Vlad Orlov (monsta) wrote :

I recommend reporting it straight to https://github.com/linuxmint/mintmenu/issues

tags: removed: bug error of on start
Revision history for this message
philippe joyez (unbuntu-5-pjoyez) wrote :

I've had that issue for sometime on a french system and have found a fix (in a russian forum, by coincidence!):

change line 281 of /usr/lib/linuxmint/mintMenu/plugins/easybuttons.py to read :

c = c_char_p(iconName.decode('utf-8', 'ignore').encode('ascii', 'ignore'))

That entirely solved the issue for me.

Revision history for this message
VitalD (vkontakte-vit) wrote : Re: [Bug 1266751] Re: mintMenu fails on load

Thanks for your comment, I hope maintainer will add some patch to solve
this problem and we'll can get update soon.

14.02.2014 20:43, philippe joyez пишет:
> I've had that issue for sometime on a french system and have found a fix
> (in a russian forum, by coincidence!):
>
> change line 281 of /usr/lib/linuxmint/mintMenu/plugins/easybuttons.py to
> read :
>
> c = c_char_p(iconName.decode('utf-8', 'ignore').encode('ascii',
> 'ignore'))
>
> That entirely solved the issue for me.
>

Revision history for this message
chemicalfan (mike-lumsden) wrote :
Revision history for this message
VitalD (vkontakte-vit) wrote :

Ok, thanks, I did request on Github.

Changed in linuxmint:
status: New → Fix Committed
Changed in linuxmint:
status: Fix Committed → Fix Released
charisz (charisz)
Changed in linuxmint:
assignee: nobody → charisz (charisz)
assignee: charisz (charisz) → nobody
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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