Bug 32229 - Using menulibre results in the loss of all application categories
Summary: Using menulibre results in the loss of all application categories
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 9
Hardware: All Linux
Priority: Normal major
Target Milestone: ---
Assignee: QA Team
QA Contact:
URL:
Whiteboard:
Keywords: advisory, validated_update
Depends on:
Blocks:
 
Reported: 2023-09-02 12:39 CEST by nekto nekto
Modified: 2023-09-30 03:42 CEST (History)
5 users (show)

See Also:
Source RPM: menulibre-2.3.0-1.mga9.src.rpm
CVE:
Status comment:


Attachments

Description nekto nekto 2023-09-02 12:39:59 CEST
installed menulibre in xfce mageia 9. manually creating a start button in xfce whisker menu crashes the menu, results in the loss of all application categories :( and in debian 12 xfce and xubuntu 23.04 the order.
Comment 1 nekto nekto 2023-09-02 12:43:55 CEST
we are talking about manually creating launch buttons in the menu for portable appimage applications and static binary assemblies.
Comment 2 sturmvogel 2023-09-02 15:11:51 CEST
(In reply to nekto nekto from comment #0)
> :( and in debian 12 xfce and xubuntu 23.04 the order.

Can you elaborate on this? It is not clear what that means...
- do you use the same /home for different distributions?
- do you have the same problem under Debian and Xubuntu?
- do you mean that when you change the menue under Mageia it alters the menue under Debian/Xubuntu? How?
Comment 3 nekto nekto 2023-09-02 15:54:08 CEST
no, I have mageia 9 installed in virtualbox for trial and testing. unfortunately I can't replace my debian 12 with this bug. I mentioned debian and xubuntu as examples where this problem doesn't exist
Comment 4 nekto nekto 2023-09-02 16:09:41 CEST
you first repeat the problem I mentioned and fix it please. no need to quibble about mentioning other Linux distributions.
Comment 5 sturmvogel 2023-09-02 16:17:40 CEST
This questions where to be able to repeat your issue. Because in your first post you statet that the menue order in Debian and Xubunto is also affected.
Comment 6 sturmvogel 2023-09-02 16:31:13 CEST
But seems like a long standing menulibre bug...
https://github.com/bluesabre/menulibre/issues/118
Comment 7 nekto nekto 2023-09-02 17:07:08 CEST

Forgive me for inaccurately mentioning other distributions and confusing you a bit with this. I wanted to put mageia 9 xfce on the real hardware of my laptop, but this problem upset me very much, because for me this function is very, very important. I believe that this is indeed a very old bug, but not in menulibre, but somewhere nearby. I have such an assumption because I tried to replace your menulibre with a variant from opensuse, in which there is no such problem, but replacing menulibre from opensuse did not help, the problem remained. it feels like few people test xfce and menulibre doesn't even exist by default :(
Comment 8 Lewis Smith 2023-09-02 21:32:46 CEST
Trying to see the starting point...
Name        : xfce4-whiskermenu-plugin
Summary     : An alternate application launcher for Xfce

Name        : menulibre
Summary     : Advanced menu editor

So, you installed the Whisker menu to replace the standard one; and menulibre to be able to edit it. Right?

> we are talking about manually creating launch buttons in the menu for
> portable appimage applications and static binary assemblies.
Unknown territory for me. Are you talking about any executable that does not have a regular menu entry? I ask so as to be able to try & reproduce the problem. So please state exactly the stepŝ you do to [try to] create one of these launchers.

Can you only do this with the Whisker menu?
If you can do it with the standard Xfce menu - does that work or crash?
If it is not specific to the Whisker menu, do you have another desktop to try the same thing?(

In reply to nekto nekto from comment #7)
> it feels like few people test xfce
Not true: as many as test other desktops. *You* could help.

> and menulibre doesn't even exist by default
It certainly exists as a normal installable package.
Do you mean it is not on the installation media? Hardly surprising: we can hardly include every possible application (there are many thousands). This one is important to you, but not to the majority of users - otherwise we would hear noise to include it as standard on the ISOs, which lack of room would anyway preclude..

Component: Release (media or process) => RPM Packages
Source RPM: (none) => menulibre-2.3.0-1.mga9.src.rpm, xfce4-whiskermenu-plugin-2.7.3-1.mga9.src.rpm
CC: (none) => lewyssmith

Comment 9 nekto nekto 2023-09-02 23:06:20 CEST
I didn't install whiskermenu in mageia 9 xfce, it's the default one. if you used xfce, you would know about it :) you can't add new application launch buttons without menulibre, it's impossible. I now have a debian 12 laptop on my desktop, and xubuntu 23.04 on a stationary computer and this problem does not exist. in mageia 9 xfce i installed menulibre / rebooted my computer just in case / opened menulibre / selected the category - internet and clicked + to create a launch button for palemoon browser / chose the path to the palemoon executable file and its icon / clicked the save button / opened the menu, and all categories with applications have disappeared. I must say that I have been doing this for 6-7 years now, so I know what I am talking about and how to do it in xfce.
Comment 10 nekto nekto 2023-09-02 23:10:49 CEST
with the standard xfce menu, the situation is identical to that with whiskermenu.
Comment 11 Jani Välimaa 2023-09-05 18:35:59 CEST
Looks like menulibre doesn't handle correctly our desktop directories .directory files.

I can probably fix it, but it's hard to fix some desktop directories having multiple words in directory name as the .directory filename's last part is not following camel or pascal case style. I guess those with multiple words needs to be fixed case by case.

CC: (none) => jani.valimaa

Jani Välimaa 2023-09-05 18:36:14 CEST

Source RPM: menulibre-2.3.0-1.mga9.src.rpm, xfce4-whiskermenu-plugin-2.7.3-1.mga9.src.rpm => menulibre-2.3.0-1.mga9.src.rpm

Jani Välimaa 2023-09-05 19:06:11 CEST

Summary: manually creating a start button in xfce whisker menu crashes the menu, results in the loss of all application categories => Using menulibre results in the loss of all application categories

Comment 12 Jani Välimaa 2023-09-05 19:14:50 CEST
Updated menulibre to the latest version and added patch to fix Mageia desktop directory (menu category) names. Please test menulibre-2.3.2-1.mga9 from core/updates_testing.

SRPMS/RPMS:
menulibre-2.3.2-1.mga9

Assignee: bugsquad => qa-bugs

Comment 13 nekto nekto 2023-09-05 21:31:38 CEST
unfortunately, I was never able to update menulibre to version 2.3.2-1.mga9. I suffered for three hours, but the core / update-testing repository is not connected either through rpmdrake or through dnfdragora and sourcelist, I did not find it :( I wanted to download menulibre from the link https://distrib-coffee.ipsl.jussieu.fr/pub/linux/Mageia/distrib/cauldron/x86_64/media/core/release/menulibre-2.3.2-1.mga10.noarch.rpm  but it didn’t work either :(
Comment 14 Jani Välimaa 2023-09-05 21:47:39 CEST
Mageia 9 version can be DL'ed directly from https://distrib-coffee.ipsl.jussieu.fr/pub/linux/Mageia/distrib/9/x86_64/media/core/updates_testing/menulibre-2.3.2-1.mga9.noarch.rpm

In cauldron we don't have menulibre-2.3.2-1.mga10 anymore. It's menulibre-2.3.2-2.mga10 already.
Comment 15 nekto nekto 2023-09-05 23:18:11 CEST
installed menulibre-2.3.2-1.mga9.noarch.rpm. for some reason, instead of choosing the path to the executable file, you have a pencil, and I could not immediately select the path to the file, but through the button - the command turned out. however, after saving, the new launch button did not appear in the menu :( but at least the categories did not disappear :)
Comment 16 Ben McMonagle 2023-09-06 11:39:05 CEST
installed menulibre-2.3.2-1.mga9

downloaded an appimage :https://www.appimagehub.com/p/1942481 
Game-of-Fifteen-x86-64.AppImage 

invoked menulibre.
attempted to understand the operation of the application.

created the launcher for the appimage.

clicking on save reslts in:

kbuildsycoca5 running...
kf.service.sycoca: The menu spec file ( "" ) contains a Layout or DefaultLayout tag without the mandatory Merge tag inside. Please fix it.


new launcher is not crated in menu

CC: (none) => westel

Comment 17 Jani Välimaa 2023-09-12 22:28:20 CEST
Looks like menulibre doesn't handle adding proper Categories= entries to newly created .desktop files either. I'll take a look.
Comment 18 Morgan Leijström 2023-09-12 22:56:54 CEST
@nekto: about enabling the testing repository, see

https://wiki.mageia.org/en/Install_media_in_Mageia_for_beginners
https://wiki.mageia.org/en/Enabling_the_Testing_media

CC: (none) => fri

Comment 19 Lewis Smith 2023-09-13 21:01:38 CEST
I always do what is described in the second wiki, but often wonder whether one of the urpmi options should do the job: --media, --searchmedia. However, I do not understand their precise effect, nor exactly how to specify the media Core/Updates_Testing, for example. Have never had any luck here

(In reply to nekto nekto from comment #9)
> I didn't install whiskermenu in mageia 9 xfce, it's the default one. if you
> used xfce, you would know about it :)
Well, I often use Xcfe, but do not bother about what exactly the menu is.
By chance, right-clicking its taskbar icon does indeed say "Whisker menu".

> you can't add new application launch
> buttons without menulibre, it's impossible
Reasonable; why there are seperate menu editors.

> in mageia 9 xfce i installed menulibre / rebooted my computer
> just in case / opened menulibre / selected the category - internet and
> clicked + to create a launch button for palemoon browser / chose the path to
> the palemoon executable file and its icon / clicked the save button / opened
> the menu, and all categories with applications have disappeared
Nice to have these precise steps for those of us for whom this is unknown territory "attempted to understand the operation of the application" c16.

> I must say
> that I have been doing this for 6-7 years now, so I know what I am talking
> about and how to do it in xfce.
No-one is doubting your expertise here!

Poised to try the original fault (before the update) - once that messes up your original menu, how do you get it back?! I think I will go for the update...
Comment 20 Lewis Smith 2023-09-13 22:25:55 CEST
Installed the issued menulibre, but did not run it.
Had some trouble getting & installing the update, downloaded it from the link in comment 14.
 menulibre-2.3.2-1.mga9

Ran it, but not without problems.
* The actual menu main categories did not correspond 100% with those shown in menulibre:
- The editor has an Education entry not in the real menu.
- The menu layout is not identical, for example Settings is shown integrally with the other main groups, whereas it is shown bounded by sparators in the application.
Unimportant here.
* The main (Whisker) menu only has the top categories, not the many sub-categories shown in the application.

BTAIM I followed instructions comment 9 [but it seems you have to select the (sub)category in the LH pane, then add your entry] to add a launcher in System-System as offered in the bottom RH pane (which does not exist in the real menu). It was to a shell script, for which I gave the path [command] + 'run in terminal'. I never found it anywhere, not least because adding it does not offer its menu name...

BTAIM again, wading ignorantly through these hoops did not - at least in the same login session - mess up the original menu. Ben comment 16 got further.
nekto comment 15 corresponds with both of us: original menu remains intact, but launcher not found (in my case, probably wrongly done).
Comment 21 Jani Välimaa 2023-09-14 15:02:20 CEST
(In reply to Jani Välimaa from comment #17)
> Looks like menulibre doesn't handle adding proper Categories= entries to
> newly created .desktop files either. I'll take a look.

Pushed a new release menulibre-2.3.2-1.1.mga9 to core/updates_testing. It should work a bit better when adding new entries to menus. Please test.
Comment 22 nekto nekto 2023-09-14 18:06:41 CEST
(In reply to Jani Välimaa from comment #21)
> (In reply to Jani Välimaa from comment #17)
> > Looks like menulibre doesn't handle adding proper Categories= entries to
> > newly created .desktop files either. I'll take a look.
> 
> Pushed a new release menulibre-2.3.2-1.1.mga9 to core/updates_testing. It
> should work a bit better when adding new entries to menus. Please test.

works! Thank you :)
Comment 23 Lewis Smith 2023-09-14 21:11:01 CEST
> (In reply to Jani Välimaa from comment #17)
> Pushed a new release menulibre-2.3.2-1.1.mga9 to core/updates_testing. It
> should work a bit better when adding new entries to menus. Please test.
Thank you a lot Jani for fixing this fiddly application.

> (In reply to nekto nekto from comment #22)
> works! Thank you :)
And thank you for this +ve feedback.

@QA
Since nekto is the principle protaganist, now satisfied; and the only one here who really know how to drive menulibre, we should take his word that the update is OK.
Comment 24 Morgan Leijström 2023-09-14 21:41:06 CEST
I agree :)

Keywords: (none) => validated_update

Comment 25 Jani Välimaa 2023-09-15 18:22:59 CEST
Pushed one more release to core/updates_testing. New release improves Categories handling when creating new menu entries.

Please test (S)RPM menulibre-2.3.2-1.2.mga9.
Comment 26 Morgan Leijström 2023-09-15 19:22:19 CEST
new version -> invalidate validation

nekto, please test this too :)

Keywords: validated_update => (none)

Comment 27 nekto nekto 2023-09-15 22:38:03 CEST
(In reply to Jani Välimaa from comment #25)
> Pushed one more release to core/updates_testing. New release improves
> Categories handling when creating new menu entries.
> 
> Please test (S)RPM menulibre-2.3.2-1.2.mga9.

menulibre-2.3.2-1.2.mga9 works well! Thank you :)
Comment 28 Morgan Leijström 2023-09-15 23:18:43 CEST
Great :)

Keywords: (none) => validated_update

Dave Hodgins 2023-09-20 23:39:50 CEST

Keywords: (none) => advisory
CC: (none) => davidwhodgins

Lewis Smith 2023-09-21 21:13:24 CEST

CC: lewyssmith => (none)

Comment 29 Mageia Robot 2023-09-27 18:33:30 CEST
An update for this issue has been pushed to the Mageia Updates repository.

https://advisories.mageia.org/MGAA-2023-0073.html

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

Comment 30 nekto nekto 2023-09-29 16:53:42 CEST
(In reply to Jani Välimaa from comment #25)
> Pushed one more release to core/updates_testing. New release improves
> Categories handling when creating new menu entries.
> 
> Please test (S)RPM menulibre-2.3.2-1.2.mga9.

Still, there is a problem with the Internet category, creating a launch shortcut in it does not lead to its appearance in the menu, and I believe that this is due to the replacement of the Internet category with mandriva-internet :( please fix it and remove mandriva-internet, let it be simple - Internet!
Comment 31 katnatek 2023-09-30 03:42:57 CEST
(In reply to nekto nekto from comment #30)
> Still, there is a problem with the Internet category, creating a launch
> shortcut in it does not lead to its appearance in the menu, and I believe
> that this is due to the replacement of the Internet category with
> mandriva-internet :( please fix it and remove mandriva-internet, let it be
> simple - Internet!

I think you must open other bug report for that, this is considered as FIXED
use  menulibre-2.3.2-1.2.mga9.src.rpm in the report

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