Bug 22417 - Installing then running menulibre wipes out Plasma/KDE menu content.
Summary: Installing then running menulibre wipes out Plasma/KDE menu content.
Status: RESOLVED OLD
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 6
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Jani Välimaa
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-01-18 19:01 CET by Kevin Bulgrien
Modified: 2020-08-16 15:51 CEST (History)
3 users (show)

See Also:
Source RPM: menulibre-2.1.3-1.mga6.src.rpm
CVE:
Status comment:


Attachments

Description Kevin Bulgrien 2018-01-18 19:01:53 CET
Description of problem:

When using task-plasma5-minimal:

$ rpm -qa | grep task-
task-printing-server-2011-10.mga6
task-codec-video-6-1.mga6
task-plasma5-minimal-5.8.7-2.1.mga6
task-x11-1-8.mga6
task-pulseaudio-2011.0-8.mga6
meta-task-6-1.mga6
task-codec-audio-6-1.mga6
task-printing-hp-2011-10.mga6
task-printing-canon-2011-10.mga6

And upon attempting to customize a user's menu with the Mageia packaged menulibre application, the Plasma start menu content is mostly removed.

$ rpm -qi menulibre
Name        : menulibre
Epoch       : 1
Version     : 2.1.3
Release     : 1.mga6
Architecture: noarch
Install Date: Thu 18 Jan 2018 11:18:05 AM CST
Group       : Graphical desktop/Other
Size        : 1375881
License     : GPLv3
Signature   : RSA/SHA1, Wed 28 Dec 2016 04:20:29 PM CST, Key ID b742fa8b80420f66
Source RPM  : menulibre-2.1.3-1.mga6.src.rpm
Build Date  : Wed 28 Dec 2016 04:20:02 PM CST
Build Host  : rabbit.mageia.org
Relocations : (not relocatable)
Packager    : akien <akien>
Vendor      : Mageia.Org
URL         : https://launchpad.net/menulibre
Summary     : Advanced menu editor
Description :
An advanced menu editor that provides modern features in a clean, easy-to-use
interface.

How reproducible:

Install and run menulibre.

Steps to Reproduce:

1. Verify KDE start menu is fully populated.  For example, verify presence of Start | Tools | System Tools | Mageia Control Center.

2. Install menulibre-2.1.3-1.mga6.src.rpm:

$ sudo urpmi menulibre
To satisfy dependencies, the following packages are going to be installed:
  Package                        Version      Release       Arch    
(medium "Core Release (distrib1)")
  lib64gmenu-gir3.0              3.13.3       6.mga6        x86_64  
  lib64gnome-menu3_0             3.13.3       6.mga6        x86_64  
  menulibre                      2.1.3        1.mga6        noarch  
  python3-psutil                 4.1.0        1.mga6        x86_64  
2.7MB of additional disk space will be used.
462KB of packages will be retrieved.
Proceed with the installation of the 4 packages? (Y/n) Y

3. Verify KDE start menu is fully populated.  For example, verify presence of Start | Tools | System Tools | Mageia Control Center.

4. Observe the contents of ~/.config/menus.  For example:

$ ls -a1 ~/.config/menus
./
../
applications-mdk-merged@
applications-merged/

In particular, not the absence of a plasma-applications.menu file.

5. Run menulibre

$ which menulibre
/usr/bin/menulibre
$ menulibre
/usr/lib/python3.5/site-packages/menulibre/MenuEditor.py:28: 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 GdkPixbuf, Gio, GLib, GMenu, Gtk

6. Verify the menu is non-empty in menulibre user interface.  For example, verify presence of Tools | System Tools | Mageia Control Center and check to be sure Hide From Menus is off.  (Some entries will have Hide From Menus, on, but this check to to be sure not all entries are off.)

7. In menulibre, in the left-hand panel representing the menu contents, pick the
last item in the list.  Actually, the item doesn't really matter, but is specified for clarity.  In my menu, this is Install & Remove Software.

8. In menulibre, note that a Save Launcher icon is greyed out.  This icon is between a + icon and an undo icon.

9. In menulibre, click + to reveal a drop down selection. Choose "Add Directory".

10. Note that a "New Directory" has appeared at the bottom of the menu, and that in the right side of the menulibre user interface that it is possible to rename "New Directory" by clicking on it, change the icon, etc.

11. In menulibre, note that the Save Launcher icon is no longer greyed out.

12. Click the Save Launcher icon.

13. In KDE, click the start button and note that the formerly fully populated menu is now a barebones menu tree containing only "Recent Applications", "Recent Documents", the "New Directory", and a "Power / Session" directory.  Note especially that the previously verified menu item (i.e. Tools | System Tools | Mageia Control Center), is now missing.

14. Observe the contents of ~/.config/menus.  For example:

$ ls -Anog ~/.config/menus
total 24
lrwxrwxrwx 1    19 Jan 14 01:32 applications-mdk-merged -> applications-merged/
drwxr-sr-x 2  4096 Jan 17 00:59 applications-merged/
-rw-rw---- 1 18370 Jan 18 11:38 

In particular, note a new plasma-applications.menu file created at the time the menulibre Save Launcher button was pressed.

15. Remove the newly created plasma-applications.menu.

$ rm ~/.config/menus/plasma-applications.menu
rm: remove regular file '/home/krb/.config/menus/plasma-applications.menu'? y

16. Observe the restored menu content.  For example, note the return of the previously verified menu item (i.e. Tools | System Tools | Mageia Control Center).
Comment 1 Marja Van Waes 2018-01-18 21:16:49 CET
Assigning to the registered menulibre maintainer.

CC'ing the KDE maintainers.

Assignee: bugsquad => jani.valimaa
CC: (none) => kde, marja11

Comment 2 Aurelien Oudelet 2020-08-16 15:51:06 CEST
Mageia 6 changed to end-of-life (EOL) status on 2019-09-30. It is no longer 
maintained, which means that it will not receive any further security or bug 
fix updates.

Package Maintainer: If you wish for this bug to remain open because you plan 
to fix it in a currently maintained version, simply change the 'version' to 
a later Mageia version.

Bug Reporter: Thank you for reporting this issue and we are sorry that we 
weren't able to fix it before Mageia 6's end of life. If you are able to 
reproduce it against a later version of Mageia, you are encouraged to click 
on "Version" and change it against that version of Mageia.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a more recent
Mageia release includes newer upstream software that fixes bugs or makes them
obsolete.

If you would like to help fixing bugs in the future, don't hesitate to join the
packager team via our mentoring program [1] or join the teams that fit you 
most [2].

[1] https://wiki.mageia.org/en/Becoming_a_Mageia_Packager
[2] http://www.mageia.org/contribute/

Best regards,
Aurélien
Bugsquad Team

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


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