Bug 29746 - menulibre is not launched under gnome
Summary: menulibre is not launched under gnome
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 8
Hardware: x86_64 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: QA Team
QA Contact:
URL:
Whiteboard: MGA8-64-OK
Keywords: advisory, validated_update
Depends on: 26633
Blocks:
  Show dependency treegraph
 
Reported: 2021-12-09 16:09 CET by sturmvogel
Modified: 2021-12-19 17:14 CET (History)
4 users (show)

See Also:
Source RPM: menulibre-2.2.1-4.mga8.src.rpm
CVE:
Status comment:


Attachments

Description sturmvogel 2021-12-09 16:09:35 CET
Description of problem:
Whilst trying to help another user here https://forums.mageia.org/en/viewtopic.php?f=7&t=14419&p=84576#p84576
i did a fresh installation of Mageia 8 Gnome x86_64 in a virtualbox. It shows that Bug #26633 is still valid for Mageia 8.

Menulibre dos not start under Gnome. Terminal output:

[gn@gnomebox ~]$ menulibre

(menulibre:2619): Gtk-WARNING **: 16:06:46.977: gtk_menu_attach_to_widget(): menu already attached to GtkMenuButton

(menulibre:2619): Gtk-WARNING **: 16:06:47.041: gtk_menu_attach_to_widget(): menu already attached to GtkMenuButton
Traceback (most recent call last):
  File "/usr/lib/python3.8/site-packages/menulibre/MenulibreApplication.py", line 2217, in do_activate
    self.win = MenulibreWindow(self, headerbar)
  File "/usr/lib/python3.8/site-packages/menulibre/MenulibreApplication.py", line 250, in __init__
    self.configure_application_treeview(builder)
  File "/usr/lib/python3.8/site-packages/menulibre/MenulibreApplication.py", line 589, in configure_application_treeview
    self.treeview = MenulibreTreeview.Treeview(self, builder)
  File "/usr/lib/python3.8/site-packages/menulibre/MenulibreTreeview.py", line 48, in __init__
    self._configure_treeview(builder)
  File "/usr/lib/python3.8/site-packages/menulibre/MenulibreTreeview.py", line 59, in _configure_treeview
    treestore = MenuEditor.get_treestore()
  File "/usr/lib/python3.8/site-packages/menulibre/MenuEditor.py", line 122, in get_treestore
    menu = get_menus()[0]
  File "/usr/lib/python3.8/site-packages/menulibre/MenuEditor.py", line 191, in get_menus
    menu = MenuEditor()
  File "/usr/lib/python3.8/site-packages/menulibre/MenuEditor.py", line 246, in __init__
    self.load()
  File "/usr/lib/python3.8/site-packages/menulibre/MenuEditor.py", line 264, in load
    if not self.tree.load_sync():
gi.repository.GLib.Error: g-io-error-quark: Failed to look up menu_file for "gnome-applications.menu"
 (0)


Version-Release number of selected component (if applicable):
menulibre-2.2.1-4.mga8


How reproducible:
always


Steps to Reproduce:
1.Install menulibre in a fresh Mageia 8 Gnome
2.Start menulibre
3.menulibre won't start
Comment 1 Lewis Smith 2021-12-09 20:00:03 CET
Thank you for the report.
To try it, I have just installed it & started it under LXDE:
 $ menulibre

(menulibre:3102): Gtk-WARNING **: 19:57:00.624: Theme parsing error: gtk.css:2:33: Failed to import: Error opening file /home/lewis/.config/gtk-3.0/window_decorations.css: No such file or directory
No menu prefix found, MenuLibre will not function properly.
(menulibre:3102): Gtk-WARNING **: 19:57:02.459: gtk_menu_attach_to_widget(): menu already attached to GtkMenuButton
(menulibre:3102): Gtk-WARNING **: 19:57:02.697: gtk_menu_attach_to_widget(): menu already attached to GtkMenuButton
WARNING:menulibre: getDefaultMenuPrefix() 'No menu prefix found, MenuLibre will not function properly.'
WARNING:menulibre: getDefaultMenuPrefix() 'No menu prefix found, MenuLibre will not function properly.'
WARNING:menulibre: getDefaultMenuPrefix() 'No menu prefix found, MenuLibre will not function properly.'
 but is started OK - one of those bare Gnome applications.
 I will go off to try it under Gnome.

CC: (none) => lewyssmith

Comment 2 Lewis Smith 2021-12-09 20:18:57 CET
Here under Gnome, real x64 hardware.

Starting 'menulibre' from terminal gave exactly the same output as comment 0 (except for a different initial number). Note, however, that the process *did not end*, but remained static after the last O/P:
    if not self.tree.load_sync():
gi.repository.GLib.Error: g-io-error-quark: Failed to look up menu_file for "gnome-applications.menu"
 (0)

It did not appear in any shape or form.
$ ps ax | grep menu
   4198 ?        Sl     0:01 /usr/bin/python3 /usr/bin/menulibre
   4613 pts/0    Sl+    0:01 /usr/bin/python3 /usr/bin/menulibre

After killing it Ctrl/C in the terminal, this still showed:
$ ps ax | grep menu
   4198 ?        Sl     0:01 /usr/bin/python3 /usr/bin/menulibre

This is something one can assign to wally, its maintainer.

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

Comment 3 Jani Välimaa 2021-12-10 18:52:47 CET
This is a bit problematic as GNOME doesn't use traditional app menus anymore. 

However I have updated menulibre to the latest release and added a patch to allow starting menulibre in modern GNOME env.

Please test menulibre-2.2.3-1.mga8 from core/updates_testing.

CC: (none) => jani.valimaa
Assignee: jani.valimaa => qa-bugs

Comment 4 sturmvogel 2021-12-11 11:40:25 CET
menulibre-2.2.3-1.mga8 starts in a virtualbox VM Mag8 x86_64 Gnome session. From the menu and also from terminal.Only some warning in console left:

(menulibre:3998): Gtk-WARNING **: 11:38:44.939: gtk_menu_attach_to_widget(): menu already attached to GtkMenuButton
Jani Välimaa 2021-12-11 12:17:38 CET

Depends on: (none) => 26633

Jani Välimaa 2021-12-11 12:17:58 CET

Summary: menulibre is not launched under gnome. BUG 26633 still valid. => menulibre is not launched under gnome

Comment 5 Len Lawrence 2021-12-11 20:07:08 CET
mga8, x86_64
Newly installed GNOME booted as GNOME on Xorg.
Before updating it behaved as Lewis indicated, crashing.
Installed the update but could not find it in the applications list so ran it directly from the command line and a gui appeared but there was nothing to indicate that it was menulibre.  It has a menubar with symbols for add, save, undo, redo, etc and search.
Then a message line "Invalid desktop files detected...." and a side menu for different software categories.  If Graphics is chosen the view panel has a tab at the bottom saying /usr/share/desktop-directories/mandriva-graphics.directory.

If that is what is expected then this looks OK.

CC: (none) => tarazed25

Comment 6 Len Lawrence 2021-12-11 20:15:45 CET
Launched in Mate menulibre showed up as under GNOME but with a frame labelled Menulibre.  So this does look OK for GNOME.

Whiteboard: (none) => MGA8-64-OK

Comment 7 Len Lawrence 2021-12-11 20:25:14 CET
Apologies - menulibre does turn up in the applications list as "Menu editor".
Comment 8 Thomas Andrews 2021-12-13 00:01:06 CET
Validating.

CC: (none) => andrewsfarm

Thomas Andrews 2021-12-13 00:01:52 CET

Keywords: (none) => validated_update
CC: (none) => sysadmin-bugs

Thomas Backlund 2021-12-19 16:33:28 CET

Keywords: (none) => advisory

Comment 9 Mageia Robot 2021-12-19 17:14:48 CET
An update for this issue has been pushed to the Mageia Updates repository.

https://advisories.mageia.org/MGAA-2021-0234.html

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


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