Bug 1851755

Summary: Wrong applications menu when running Plasma/Openbox session
Product: [Fedora] Fedora Reporter: Massimiliano <massi.ergosum>
Component: openboxAssignee: Miroslav Lichvar <mlichvar>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 33CC: christoph.wickert, mlichvar, splinux25
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openbox-3.6.1-16.fc33 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-01-05 01:25:25 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Massimiliano 2020-06-28 18:07:33 UTC
Description of problem:
When running a Plasma/Openbox session a wrong applications menu is shown. Categories have no icons and have untranslated (italian) entries. This is different when running a Kwin session. The issue is due the wrong XDG_MENU_PREFIX="kde-4-" variable setting in the /bin/openbox-kde-session script: the value under Kwin session is "kf5-".

Version-Release number of selected component (if applicable):
- openbox-kde-3.6.1-12.fc31.noarch

How reproducible:
$ XDG_MENU_PREFIX=kde-4- kbuildsycoca5 --menutest
$ XDG_MENU_PREFIX=kf5- kbuildsycoca5 --menutest

Actual results:
The Plasma applications menu with Openbox is different (and worse) than a Kwin session.

Expected results:
The same applications menu with both Openbox and Kwin.

Additional info:
Setting the value XDG_MENU_PREFIX="kf5-" in the /bin/openbox-kde-session script solves the problem.

Comment 1 Ben Cotton 2020-11-03 16:44:25 UTC
This message is a reminder that Fedora 31 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora 31 on 2020-11-24.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
Fedora 'version' of '31'.

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 Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 31 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

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 Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 2 Miroslav Lichvar 2020-11-05 10:10:00 UTC
Is there a document explaining what the prefix actually does? If I change it in the openbox-kde-session script to "kf5-", I get a different output from the kbuildsycoca5 command, but the menu in the panel doesn't change. Is that expected?

Comment 3 Massimiliano 2020-11-07 09:11:54 UTC
(In reply to Miroslav Lichvar from comment #2)
> Is there a document explaining what the prefix actually does?

https://specifications.freedesktop.org/menu-spec/latest/ar01s02.html

See also:
$ ls /etc/xdg/menus/*-applications.menu
/etc/xdg/menus/kde4-applications.menu  /etc/xdg/menus/kf5-applications.menu


> If I change it
> in the openbox-kde-session script to "kf5-", I get a different output from
> the kbuildsycoca5 command, but the menu in the panel doesn't change. Is that
> expected?

Changing the value of the variable gives me a different menu (no icons and untranslated entries, see problem above).
I'm using Plasma with default menu and italian language:

$ XDG_MENU_PREFIX=kde4- kbuildsycoca5 --menutest            
kbuildsycoca5 running...
Amministrazione/        firewall-config.desktop
Development/    com.visualstudio.code-oss.desktop
Development/    org.gnome.meld.desktop
Graphics/       org.kde.gwenview.desktop
Graphics/       org.kde.okular.desktop
Internet/       com.skype.Client.desktop
Internet/       chromium-freeworld.desktop
Internet/       firefox.desktop
Multimedia/     org.kde.kamoso.desktop
Multimedia/     vlc.desktop
Office/ libreoffice-writer.desktop
Office/ libreoffice-calc.desktop
Office/ org.kde.okular.desktop
Settingsmenu/   obconf.desktop
Settingsmenu/   systemsettings.desktop
System/ gparted.desktop
System/ org.kde.discover.desktop
System/ org.kde.ksysguard.desktop
System/ org.kde.kwalletmanager5.desktop
System/ org.kde.dolphin.desktop
System/ htop.desktop
System/ org.kde.kinfocenter.desktop
System/ mediawriter.desktop
System/ org.kde.konsole.desktop
Utilities/      com.visualstudio.code-oss.desktop
Utilities/      org.kde.plasma.emojier.desktop
Utilities/      org.gnome.seahorse.Application.desktop
Utilities/      org.kde.kcalc.desktop
Utilities/      org.kde.spectacle.desktop
Utilities/      org.kde.ark.desktop
Utilities/      org.kde.sweeper.desktop
Utilities/      org.kde.kate.desktop
Utilities/      org.kde.kcharselect.desktop

$ XDG_MENU_PREFIX=kf5- kbuildsycoca5 --menutest
kbuildsycoca5 running...
Amministrazione/        firewall-config.desktop
Sviluppo/       org.gnome.meld.desktop
Sviluppo/       com.visualstudio.code-oss.desktop
Grafica/        org.kde.gwenview.desktop
Grafica/        org.kde.okular.desktop
Internet/       firefox.desktop
Internet/       chromium-freeworld.desktop
Internet/       com.skype.Client.desktop
Multimedia/     org.kde.kamoso.desktop
Multimedia/     vlc.desktop
Ufficio/        libreoffice-calc.desktop
Ufficio/        libreoffice-writer.desktop
Ufficio/        org.kde.okular.desktop
Impostazioni/   obconf.desktop
Impostazioni/   systemsettings.desktop
Sistema/        mediawriter.desktop
Sistema/        gparted.desktop
Sistema/        org.kde.kinfocenter.desktop
Sistema/        org.kde.discover.desktop
Sistema/        htop.desktop
Sistema/        org.kde.ksysguard.desktop
Sistema/        org.kde.kwalletmanager5.desktop
Sistema/        org.kde.konsole.desktop
Sistema/        org.kde.dolphin.desktop
Accessori/      org.kde.ark.desktop
Accessori/      org.kde.spectacle.desktop
Accessori/      org.kde.kcharselect.desktop
Accessori/      org.kde.kcalc.desktop
Accessori/      org.kde.sweeper.desktop
Accessori/      org.gnome.seahorse.Application.desktop
Accessori/      org.kde.plasma.emojier.desktop
Accessori/      com.visualstudio.code-oss.desktop
Accessori/      org.kde.kate.desktop

$ rpm -q --whatprovides /etc/xdg/menus/kde4-applications.menu 
kdelibs-4.14.38-20.fc32.x86_64

$ rpm -q --whatprovides /etc/xdg/menus/kf5-applications.menu 
kf5-kservice-5.73.0-1.fc32.x86_64

$ rpm -qi kdelibs
Name        : kdelibs
Epoch       : 6
Version     : 4.14.38
Release     : 20.fc32
Architecture: x86_64
Install Date: dom 28 giu 2020, 12:28:09
Group       : Unspecified
Size        : 48128194
License     : LGPLv2+
Signature   : RSA/SHA256, gio 30 gen 2020, 23:22:00, Key ID 6c13026d12c944d0
Source RPM  : kdelibs-4.14.38-20.fc32.src.rpm
Build Date  : gio 30 gen 2020, 17:32:02
Build Host  : buildvm-14.phx2.fedoraproject.org
Packager    : Fedora Project
Vendor      : Fedora Project
URL         : http://www.kde.org/
Bug URL     : https://bugz.fedoraproject.org/kdelibs
Summary     : KDE Libraries
Description :
Libraries for KDE 4.

NOTE: Description --> Libraries for KDE 4 <--

Comment 4 Miroslav Lichvar 2020-11-09 09:56:14 UTC
Ok, thanks for the information. I'm preparing a F33 update.

Comment 5 Fedora Update System 2020-11-09 10:06:10 UTC
FEDORA-2020-880fbc10b8 has been submitted as an update to Fedora 33. https://bodhi.fedoraproject.org/updates/FEDORA-2020-880fbc10b8

Comment 6 Fedora Update System 2020-11-10 02:19:13 UTC
FEDORA-2020-880fbc10b8 has been pushed to the Fedora 33 testing repository.
In short time you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-880fbc10b8`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-880fbc10b8

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 7 Massimiliano 2020-11-14 10:07:26 UTC
Works for me.

$ rpm -qa openbox\*
openbox-libs-3.6.1-16.fc33.x86_64
openbox-3.6.1-16.fc33.x86_64
openbox-kde-3.6.1-16.fc33.noarch

Comment 8 Fedora Update System 2021-01-05 01:25:25 UTC
FEDORA-2020-880fbc10b8 has been pushed to the Fedora 33 stable repository.
If problem still persists, please make note of it in this bug report.