SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2015-04-15 09:51:55

News Plus
#! Member
Registered: 2015-02-23
Posts: 90

menu.xml correction

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

Help fund CrunchBang, donate to the project!

#2 2015-04-15 11:31:34

Head_on_a_Stick
CatMod
From: A world of pure imagination
Registered: 2014-01-21
Posts: 4,797

Re: menu.xml correction

^ Both work...

Openbox documentation wrote:

<execute> is a deprecated name for <command>

http://openbox.org/wiki/Help:Actions#Execute

Offline

#3 2015-04-15 15:20:28

News Plus
#! Member
Registered: 2015-02-23
Posts: 90

Re: menu.xml correction

^ Both work in Debian "Wheezy"...

In Debian "Jessie" Obmenu (example):

Label        -    Terminal
Action      -     Execute
Execute    -                   (empty)

And editing it in obmenu not work.

Offline

#4 2015-04-16 05:43:20

johnraff
nullglob
From: Nagoya, Japan
Registered: 2009-01-07
Posts: 4,148
Website

Re: menu.xml correction

^ <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

#5 2015-04-16 09:41:12

News Plus
#! Member
Registered: 2015-02-23
Posts: 90

Re: menu.xml correction

johnraff wrote:

Jessie is still "testing" so maybe it will be fixed...

We will hope...  smile

Offline

#6 2015-04-16 09:52:22

johnraff
nullglob
From: Nagoya, Japan
Registered: 2009-01-07
Posts: 4,148
Website

Re: menu.xml correction

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>

confused.gif


John
--------------------
( a boring Japan blog , Japan Links, idle twitterings  and GitStuff )
#! forum moderator    BunsenLabs

Offline

#7 2015-04-16 10:57:12

News Plus
#! Member
Registered: 2015-02-23
Posts: 90

Re: menu.xml correction

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

#8 2015-04-16 11:05:30

damo
#! gimpbanger
From: N51.5 W002.8 (mostly)
Registered: 2011-11-24
Posts: 5,434

Re: menu.xml correction

Also note that quoted commands work in menu.xml, and the menu displays OK, but obmenu fails to start if it finds that "&quot" hasn't been used.


BunsenLabs Group on deviantArt
damo's gallery on deviantArt
Openbox themes
Forum Moderator smile

Offline

#9 2015-04-20 05:06:29

johnraff
nullglob
From: Nagoya, Japan
Registered: 2009-01-07
Posts: 4,148
Website

Re: menu.xml correction

&quot; 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

#10 2015-08-15 06:11:51

johnraff
nullglob
From: Nagoya, Japan
Registered: 2009-01-07
Posts: 4,148
Website

Re: menu.xml correction

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

Board footer

Powered by FluxBB

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

Debian Logo