Bug 24906 - menulibre don't start
Summary: menulibre don't start
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Jani Välimaa
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-06-05 02:38 CEST by katnatek
Modified: 2019-06-15 16:20 CEST (History)
1 user (show)

See Also:
Source RPM: menulibre-2.2.0-3.mga7.src.rpm
CVE:
Status comment:


Attachments

Description katnatek 2019-06-05 02:38:37 CEST
Description of problem:

menulibre don't start, run from console produce this

(menulibre:11405): Gtk-WARNING **: 19:16:12.615: gtk_menu_attach_to_widget(): menu already attached to GtkMenuButton

(menulibre:11405): Gtk-WARNING **: 19:16:14.327: gtk_menu_attach_to_widget(): menu already attached to GtkMenuButton
Traceback (most recent call last):
  File "/usr/lib/python3.7/site-packages/menulibre/MenulibreApplication.py", line 2217, in do_activate
    self.win = MenulibreWindow(self, headerbar)
  File "/usr/lib/python3.7/site-packages/menulibre/MenulibreApplication.py", line 250, in __init__
    self.configure_application_treeview(builder)
  File "/usr/lib/python3.7/site-packages/menulibre/MenulibreApplication.py", line 589, in configure_application_treeview
    self.treeview = MenulibreTreeview.Treeview(self, builder)
  File "/usr/lib/python3.7/site-packages/menulibre/MenulibreTreeview.py", line 48, in __init__
    self._configure_treeview(builder)
  File "/usr/lib/python3.7/site-packages/menulibre/MenulibreTreeview.py", line 59, in _configure_treeview
    treestore = MenuEditor.get_treestore()
  File "/usr/lib/python3.7/site-packages/menulibre/MenuEditor.py", line 123, in get_treestore
    return menu_to_treestore(treestore, None, menu)
  File "/usr/lib/python3.7/site-packages/menulibre/MenuEditor.py", line 111, in menu_to_treestore
    treestore = menu_to_treestore(treestore, treeiter, item[3])
  File "/usr/lib/python3.7/site-packages/menulibre/MenuEditor.py", line 100, in menu_to_treestore
    tooltip = escapeText(item[2]['comment'])
  File "/usr/lib/python3.7/site-packages/menulibre/util.py", line 99, in escapeText
    return GLib.markup_escape_text(text, len(text))
  File "/usr/lib/python3.7/site-packages/gi/overrides/GLib.py", line 415, in markup_escape_text
    return GLib.markup_escape_text(text, length)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc3 in position 60: unexpected end of data

Change line 99 of /usr/lib/python3.7/site-packages/menulibre/util.py
from 

return GLib.markup_escape_text(text, len(text))

to

return GLib.markup_escape_text(text)

as suggested by this patch (https://launchpadlibrarian.net/413008793/cut.patch) provide by Zeioth from aur community (https://aur.archlinux.org/packages/menulibre/#comment-694448) makes it work

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.
katnatek 2019-06-05 02:42:47 CEST

Summary: menulibre don't start, apply change from from user of aur patch make its work => menulibre don't start, apply change from aur's user patch make its work

Comment 1 David GEIGER 2019-06-05 07:02:28 CEST
Assigning to the registered maintainer!

Assignee: bugsquad => jani.valimaa
CC: (none) => geiger.david68210

Comment 2 Jani Välimaa 2019-06-05 07:48:22 CEST
We should update to the latest version 2.2.1. It includes fix for the issue.

I'm not recommending to use menulibre at least with Xfce as after editing the menu, menu entries will be hidden. Don't know if there is similar issue with other DEs also.

Alacarte seems to be more better option for menu editing at the moment.
Comment 3 katnatek 2019-06-05 18:30:10 CEST
(In reply to Jani Välimaa from comment #2)
> We should update to the latest version 2.2.1. It includes fix for the issue.
> 
> I'm not recommending to use menulibre at least with Xfce as after editing
> the menu, menu entries will be hidden. Don't know if there is similar issue
> with other DEs also.
> 
> Alacarte seems to be more better option for menu editing at the moment.

I don't remember where buti found some thingrelated but should be already fixed
I will test later and let you know
Comment 4 katnatek 2019-06-05 21:25:47 CEST
(In reply to Jani Välimaa from comment #2)
> We should update to the latest version 2.2.1. It includes fix for the issue.
> 
> I'm not recommending to use menulibre at least with Xfce as after editing
> the menu, menu entries will be hidden. Don't know if there is similar issue
> with other DEs also.
> 
> Alacarte seems to be more better option for menu editing at the moment.

I confirm menulibre don't like whisker-menu :P

The bug report i previously talk is about other thing https://bugs.launchpad.net/menulibre/+bug/1732099
Jani Välimaa 2019-06-06 18:41:19 CEST

Summary: menulibre don't start, apply change from aur's user patch make its work => menulibre don't start

Comment 5 Jani Välimaa 2019-06-15 16:20:46 CEST
Fixed with menulibre 2.2.1.

Resolution: (none) => FIXED
Status: NEW => RESOLVED


Note You need to log in before you can comment on or make changes to this bug.