Bug 748363

Summary: Xdg-menu issue on Fedora 16 and OpenBox
Product: [Fedora] Fedora Reporter: papapizza <papapizza>
Component: openboxAssignee: Miroslav Lichvar <mlichvar>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 16CC: cwickert, mlichvar, palaceks
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-10-24 10:01:25 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description papapizza 2011-10-24 09:12:21 UTC
Description of problem:
Dynamical Menu doesn't work on OpenBox and Fedora 16. I can see this error message : Failed to execute command for pipe-menu "/usr/share/openbox/xdg-menu applications": Failed to execute child process "/usr/share/openbox/xdg-menu" (No such file or directory)

On this website (http://frikinux.blogspot.com/2011/10/error-al-actualizar-de-xdg-menu-en.html), the author offers to install openbox-xdgmenu to solve this issue on Archlinux. But this package doesn't exist on Fedora 16.

Additional info:

# cat /etc/redhat-release 
Fedora release 16 (Verne)

# rpm -qa | grep -i openbox
openbox-libs-3.5.0-3.fc16.i686
openbox-3.5.0-3.fc16.i686

# rpm -qa | grep -i xdg
xdg-user-dirs-0.14-1.fc15.i686
xdg-utils-1.1.0-0.9.20110714.fc16.noarch

Comment 1 Christoph Wickert 2011-10-24 09:26:15 UTC
What calls /usr/share/openbox/xdg-menu? The script is included in the openbox package but it's in /usr/libexec.

Comment 2 papapizza 2011-10-24 10:01:25 UTC
Ok, I understand my mistake, I have thoses lines in my .config/openbox/menu.xml :

<menu execute="/usr/share/openbox/xdg-menu applications" id="applications-menu" label="Applications"/>
<menu execute="/usr/share/openbox/xdg-menu preferences" id="preferences-menu" label="Preferences"/>
<menu execute="/usr/share/openbox/xdg-menu system-settings" id="administration-menu" label="Administration"/>

I changed /usr/share/openbox/xdg-menu by /usr/libexec/openbox-xdg-menu and now it's work perfectly.

For information, I have upgraded my Fedora 16 from a Fedora 15 with yum upgrade command. With the previous version, I haven't this issue.

Thank you.

Comment 3 Christoph Wickert 2011-10-24 10:29:28 UTC
Yeah, we changed the location of the script and I'm afraid more people will run into this problem. But as /usr/libexec is more appropriate I don't think we should change it back. It's to late for Fedora 16 anyway (today is freeze).

Comment 4 Stanislav Paláček 2011-11-14 12:37:57 UTC
Hi,
I have in .config/openbox/menu.xml also:
 <menu id="terminals-menu" label="Terminals" execute="/usr/share/openbox/xdg-menu /usr/share/openbox/terminals"/>

I can't find by what I can replace:
 /usr/share/openbox/terminals

Comment 5 Miroslav Lichvar 2011-11-14 12:44:38 UTC
The terminals.menu file has been moved to /etc/xdg/openbox.

The default config has:
<menu id="terminals-menu" label="Terminals" execute="/usr/libexec/openbox-xdg-menu /etc/xdg/openbox/terminals"/>