You are not logged in.
Pages: 1
obmenu inadequate displays menu.xml
Сorrection:
Old version:
<item label="Program">
<action name="Execute">
<command>program</command>
</action>
</item>
New version:
<item label="Program">
<action name="Execute">
<execute>program</execute>
</action>
</item>
Offline
^ Both work...
<execute> is a deprecated name for <command>
Offline
^ Both work in Debian "Wheezy"...
In Debian "Jessie" Obmenu (example):
Label - Terminal
Action - Execute
Execute - (empty)
And editing it in obmenu not work.
Offline
^ <command> is correct, and as you say obmenu had no problems with it in Wheezy.
The version numbers of obmenu in Wheezy and Jessie are the same, so maybe there is something with the python packages in Jessie?
Jessie is still "testing" so maybe it will be fixed...
John
--------------------
( a boring Japan blog , Japan Links, idle twitterings and GitStuff )
#! forum moderator BunsenLabs
Offline
Jessie is still "testing" so maybe it will be fixed...
We will hope...
Offline
Anyway it is very strange.
obmenu on Wheezy not only reads menu entries defined with <command>...</command>, it also writes new entries that way!
The exact same version of obmenu on Jessie fails to recogize <command> and writes new entries with <execute>...</execute>
John
--------------------
( a boring Japan blog , Japan Links, idle twitterings and GitStuff )
#! forum moderator BunsenLabs
Offline
Lubuntu uses "<execute>...</execute>"
<?xml version="1.0" encoding="UTF-8"?>
<openbox_menu xmlns="http://openbox.org/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://openbox.org/
file:///usr/share/openbox/menu.xsd">
<menu id="root-menu" label="Openbox 3">
<item label="Terminal emulator">
<action name="Execute"><execute>x-terminal-emulator</execute></action>
</item>
<item label="Web browser">
<action name="Execute"><execute>x-www-browser</execute></action>
</item>
<separator />
<menu id="client-list-menu" />
<separator />
<item label="ObConf">
<action name="Execute"><execute>obconf</execute></action>
</item>
<item label="Reconfigure">
<action name="Reconfigure" />
</item>
<item label="Restart">
<action name="Restart" />
</item>
<separator />
<item label="Exit">
<action name="Exit" />
</item>
</menu>
</openbox_menu>
Offline
Also note that quoted commands work in menu.xml, and the menu displays OK, but obmenu fails to start if it finds that """ hasn't been used.
BunsenLabs Group on deviantArt
damo's gallery on deviantArt
Openbox themes
Forum Moderator
Offline
" is the correct escaping for xml, so I guess obmenu is using a different xml parsing library from what openbox uses.
I'm still puzzled at the same program's different behaviour on Wheezy vs Jessie though. Maybe that "xml parsing library" (whatever it is) has changed?
John
--------------------
( a boring Japan blog , Japan Links, idle twitterings and GitStuff )
#! forum moderator BunsenLabs
Offline
Solved: on Waldorf we were using a CrunchBang version of obmenu (1.0-4) where the issue is fixed. Debian (even Stretch and Sid) only have 1.0-2.
John
--------------------
( a boring Japan blog , Japan Links, idle twitterings and GitStuff )
#! forum moderator BunsenLabs
Offline
Pages: 1
Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.
Server: acrobat