Bug 26633 - menulibre is not launched under gnome 3.32
Summary: menulibre is not launched under gnome 3.32
Status: RESOLVED OLD
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 7
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Jani Välimaa
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 29746
  Show dependency treegraph
 
Reported: 2020-05-16 22:05 CEST by Nicolas Nicolas
Modified: 2021-12-11 12:17 CET (History)
1 user (show)

See Also:
Source RPM: menulibre-2.2.1-1.mga7.src.rpm
CVE:
Status comment:


Attachments

Description Nicolas Nicolas 2020-05-16 22:05:38 CEST
Hello,

alacarte and menulibre are not running under Gnome 3.32.

When launched from a terminal, the same traceback as in bug 12153 is displayed (even gnome-menus package is installed).

usertest@mageia7-test ~]$ alacarte       
/usr/lib/python2.7/site-packages/Alacarte/MainWindow.py:22: PyGIWarning: GMenu was imported without specifying a version first. Use gi.require_version('GMenu', '3.0') before import to ensure that the right version gets loaded.
  from gi.repository import Gtk, GdkPixbuf, Gdk, GMenu

(alacarte:5732): Gtk-CRITICAL **: 22:01:48.647: gtk_accel_label_set_accel_closure: assertion 'gtk_accel_group_from_accel_closure (accel_closure) != NULL' failed

(alacarte:5732): Gtk-CRITICAL **: 22:01:48.648: gtk_accel_label_set_accel_closure: assertion 'gtk_accel_group_from_accel_closure (accel_closure) != NULL' failed
Traceback (most recent call last):
  File "/usr/bin/alacarte", line 24, in <module>
    main()
  File "/usr/lib/python2.7/site-packages/Alacarte/MainWindow.py", line 463, in main
    app.setMenuBasename(basename)
  File "/usr/lib/python2.7/site-packages/Alacarte/MainWindow.py", line 61, in setMenuBasename
    self.editor = MenuEditor(menu_basename)
  File "/usr/lib/python2.7/site-packages/Alacarte/MenuEditor.py", line 36, in __init__
    self.load()
  File "/usr/lib/python2.7/site-packages/Alacarte/MenuEditor.py", line 49, 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)
[usertest@mageia7-test ~]$ menulibre

(menulibre:5736): Gtk-WARNING **: 22:01:59.838: gtk_menu_attach_to_widget(): menu already attached to GtkMenuButton

(menulibre:5736): Gtk-WARNING **: 22:01:59.937: 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 122, in get_treestore
    menu = get_menus()[0]
  File "/usr/lib/python3.7/site-packages/menulibre/MenuEditor.py", line 191, in get_menus
    menu = MenuEditor()
  File "/usr/lib/python3.7/site-packages/menulibre/MenuEditor.py", line 246, in __init__
    self.load()
  File "/usr/lib/python3.7/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"


As suggested in the above mentionned bug, creating a symbolic link allow both software to be launched.
Comment 1 Lewis Smith 2020-05-17 22:15:07 CEST
 https://bugs.mageia.org/show_bug.cgi?id=12153#c3
"symlinking /etc/xdg/gnome/menus/gnome-applications.menu to /etc/xdg/menus/"
> creating a symbolic link allow both software to be launched.
With 'gnome-menus-3.32.0-1.mga7' installed, I reproduced this bug exactly on both counts.

The 'alarcarte' part of this bug is a duplicate of bug 25361.

However, I am leaving this open for 'menulibre', which does not crash but does not go anywhere.
Assigning to its active maintainer wally.

Assignee: bugsquad => jani.valimaa
Source RPM: alacarte-3.11.91-10.mga7 => menulibre-2.2.1-1.mga7.src.rpm
Summary: alacarte and menulibre are not launched under gnome 3.32 => menulibre is not launched under gnome 3.32

Comment 2 Jani Välimaa 2020-05-18 19:00:40 CEST
What does 'echo $XDG_CONFIG_DIRS' and 'echo $XDG_MENU_PREFIX' output in GNOME?
Comment 3 Nicolas Nicolas 2020-05-18 22:30:10 CEST
Hello,

Here is what i get from the terminal ( selected choice gnome):

[usertest@mageia7-test ~]$ echo $XDG_CONFIG_DIRS

[usertest@mageia7-test ~]$ echo $XDG_MENU_PREFIX
gnome-
[usertest@mageia7-test ~]$
Comment 4 Jani Välimaa 2020-05-19 19:16:16 CEST
What if you do 'export XDG_CONFIG_DIRS=/etc/xdg/gnome:/etc/xdg' before launching?

But make sure you don't have the symlink mentioned in bug 12153 comment 3.
Comment 5 Nicolas Nicolas 2020-05-20 07:50:16 CEST
Hello,

When the XDG_CONFIG_DIRS is set, menulibre is launched.
Comment 6 Richard Kurjak 2020-10-11 17:25:04 CEST
Hello,

The bug is still exist on Mageia 8 - Gnome 3.38

CC: (none) => kurjak.richard

Comment 7 Aurelien Oudelet 2021-07-06 13:17:29 CEST
Mageia 7 is EOL since July 1st 2021.
There will not have any further bugfix for this release.

You are encouraged to upgrade to Mageia 8 as soon as possible.

@reporter, if this bug still apply with Mageia 8, please let us know it.

@packager, if you work on the Mageia 7 version of your package, please check the Mageia 8 package if issue is also present. In this case, please fix the Mageia 8 version instead.

This bug report will be closed OLD if there is no further notice within 1st September 2021.
Comment 8 Marja Van Waes 2021-09-07 14:10:21 CEST
Hi bug reporter and hi assignee and others involved,

Please reopen this bug report if it is still valid for Mageia 8 or 9(cauldron), and change "Version:" in the upper left of this report accordingly.

This report is being closed as OLD because it was filed against Mageia 7, for which  support ended on June 30th 2021.

Thanks,
Marja

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

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

Blocks: (none) => 29746


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