Bug 15871 - menu-cache 1.0.0: problem with menu cache regeneration
Summary: menu-cache 1.0.0: problem with menu cache regeneration
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: Mageia Bug Squad
QA Contact:
URL:
Whiteboard: IN_ERRATA
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-07 10:39 CEST by Nicolas Salguero
Modified: 2015-05-20 14:00 CEST (History)
1 user (show)

See Also:
Source RPM:
CVE:
Status comment:


Attachments
output of command (41.77 KB, text/plain)
2015-05-14 17:41 CEST, You-Cheng Hsieh
Details
/tmp/test.txt (5.04 KB, text/plain)
2015-05-14 17:48 CEST, You-Cheng Hsieh
Details

Description Nicolas Salguero 2015-05-07 10:39:32 CEST
While investigating bug 15835, I found another bug: if I add, touch or remove a .desktop file in /usr/share/applications while menu-cached is not running, when menu-cached is launched, it does not detect the modification and the menu cache is not updated.

I made a bug report on LXDE bug tracker: https://sourceforge.net/p/lxde/bugs/752/.
Comment 1 Nicolas Salguero 2015-05-07 11:10:43 CEST
lxde-common-0.99.0-9.mga5 contains the patch force-menu-cache-regeneration-on-login that provides a solution for this bug.
Comment 2 You-Cheng Hsieh 2015-05-14 16:24:00 CEST
I have no menu in LXDE after I updated lxde-common-0.99.0-9.mga5.

CC: (none) => yochenhsieh

Comment 3 Nicolas Salguero 2015-05-14 17:14:02 CEST
What is the result of the following command?

/usr/libexec/menu-cache/menu-cache-gen -i /etc/xdg/menus/applications.menu -o /tmp/test.txt -vvv
Comment 4 You-Cheng Hsieh 2015-05-14 17:41:15 CEST
Created attachment 6543 [details]
output of command
Comment 5 You-Cheng Hsieh 2015-05-14 17:48:14 CEST
Created attachment 6544 [details]
/tmp/test.txt
Comment 6 Nicolas Salguero 2015-05-14 18:08:39 CEST
Menu cache generation looks good.

Is the directory $HOME/.cache/menus/ empty?
Is the process /usr/libexec/menu-cache/menu-cached running?
Does the menu reappear after log out then log in?
Comment 7 You-Cheng Hsieh 2015-05-15 14:22:07 CEST
Yes, ~/.cache/menus is empty.
Yes, menu-cached is running.
No, menu won't reappear.
Comment 8 Nicolas Salguero 2015-05-15 15:09:29 CEST
Is ~/.cache/menus writable by the user?
Does the menu reappear if you add, touch or remove a .desktop file in /usr/share/applications?
Comment 9 You-Cheng Hsieh 2015-05-15 15:44:52 CEST
Yes, permission is 700 for the user. 
No, any change to desktop files in /usr/share/applications won't affect the menu.
Comment 10 Nicolas Salguero 2015-05-15 16:08:25 CEST
In the file ~/.config/lxsession/LXDE/desktop.conf, section [Environment], what is the value of menu_prefix?
Comment 11 You-Cheng Hsieh 2015-05-15 16:13:20 CEST
menu_prefix=lxde-
Comment 12 Nicolas Salguero 2015-05-15 16:43:02 CEST
If you replace with "menu_prefix=", it should correct the problem.

Normally this problem can only affect machines that have been running Cauldron and not the ones upgrading from Mga4.
Comment 13 You-Cheng Hsieh 2015-05-15 16:52:19 CEST
Yes, that fixed it. This is indeed my cauldron vm. But what will happen if a machine installed Mga5 alpha and followed cauldron development since then?
Comment 14 Nicolas Salguero 2015-05-15 16:58:41 CEST
I think the problem may be the same.  It is preferable to remove ~/.config/lxsession/LXDE/desktop.conf (and maybe ~/.config/lxpanel/LXDE/panels/panel also) before logging into LXDE after Mga5 is released.
Comment 15 Samuel Verschelde 2015-05-15 17:02:31 CEST
Does this piece of advice apply to some extent to Mageia 4 users? If so, a note in the release notes or errata would be nice. If only cauldron users are affected (including those having tested the alpha), I don't think a note is needed. If RC users are affected, then I'd add a note saying it applies only to people who tested a development version of Mageia 5. 

What would be the last not affected pre-mga5 ISO?
Comment 16 Nicolas Salguero 2015-05-15 20:55:45 CEST
After some tests, it appears that it can also affect Mga4 users if they had launched lxsession-default-apps and clicked the button "Apply" in the Settings section, entry "menu prefix".

So I think a note in the release notes or errata would be nice.  How to do that?
Comment 17 You-Cheng Hsieh 2015-05-16 03:21:42 CEST
The errata is on our wiki here: https://wiki.mageia.org/en/Mageia_5_Errata#LXDE
I've added it. Please feel free to add more info if you need.
Rémi Verschelde 2015-05-16 10:16:18 CEST

Whiteboard: (none) => ERRATA

Comment 18 Samuel Verschelde 2015-05-16 14:44:20 CEST
(In reply to You-Cheng Hsieh from comment #17)
> The errata is on our wiki here:
> https://wiki.mageia.org/en/Mageia_5_Errata#LXDE
> I've added it. Please feel free to add more info if you need.

There should be some elements of context in the errata entry: what users are likely to be concerned by the issue.
Samuel Verschelde 2015-05-20 13:45:18 CEST

Whiteboard: ERRATA => FOR_ERRATA

Comment 19 Nicolas Salguero 2015-05-20 14:00:51 CEST
i have updated the errata https://wiki.mageia.org/en/Mageia_5_Errata#LXDE concerning this problem so I close the bug.

Status: NEW => RESOLVED
Resolution: (none) => FIXED
Whiteboard: FOR_ERRATA => IN_ERRATA


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