You are not logged in.

#1 2014-01-19 18:29:44

Jatra
Member
From: Finland
Registered: 2014-01-13
Posts: 22

[SOLVED]Icons in Openbox right-click-menu

Once again, I've read quite a bit of topics and tried to follow them rightly, but still there is some things that don't work. This time I'm not able to make icons visible on Openbox menus. This is wierd, 'cause middle-click menu shows icons default, without any configuration.

This is the menu-part of my /home/usr/.config/openbox/rc.xml-file

<menu>
    <!-- You can specify more than one menu file in here and they are all loaded,
       just don't make menu ids clash or, well, it'll be kind of pointless -->
    <!-- default menu file (or custom one in $HOME/.config/openbox/) -->
    <file>menu.xml</file>
    <hideDelay>200</hideDelay>
    <!-- if a press-release lasts longer than this setting (in milliseconds), the
       menu is hidden again -->
    <middle>no</middle>
    <!-- center submenus vertically about the parent entry -->
    <submenuShowDelay>100</submenuShowDelay>
    <!-- time to delay before showing a submenu after hovering over the parent
       entry.
       if this is a negative value, then the delay is infinite and the
       submenu will not be shown until it is clicked on -->
    <submenuHideDelay>400</submenuHideDelay>
    <!-- time to delay before hiding a submenu when selecting another
       entry in parent menu
       if this is a negative value, then the delay is infinite and the
       submenu will not be hidden until a different submenu is opened -->
    <showIcons>yes</showIcons>
    <!-- controls if icons appear in the client-list-(combined-)menu -->
    <manageDesktops>yes</manageDesktops>
    <!-- show the manage desktops section in the client-list-(combined-)menu -->
  </menu>

As you can see, line showicons is yes - as it was as default.

Then, part of my /home/usr/.config/openbox/menu.xml-file. There is icon command only for Libre Office, as I'm trying to make it work before I configure the whole menu. It's on the line eight, as you see.

<menu id="root-menu" label="Openbox 3">
  <separator label="Ohjelmat" />
  <menu id="apps-accessories-menu"/>
  <menu id="apps-editors-menu"/>
  <menu id="apps-graphics-menu"/>
  <menu id="apps-net-menu"/>
  <item label="Libre Office" icon=/usr/share/icons/gnome/16x16/apps/libreoffice-main.png>
    <action name="Execute">
      <command>libreoffice</command>
     </action>
  </item>
  <menu id="apps-office-menu"/>
  <menu id="apps-multimedia-menu"/>
  <menu id="apps-term-menu"/>
  <menu id="apps-fileman-menu"/>
  <separator label="Järjestelmä"/>
  <menu id="system-menu"/>
  <separator />
  <item label="Sammuta">
    <action name="Exit">
      <prompt>yes</prompt>
    </action>
  </item>
</menu>

So, why there is no icon on menu for that item? I'v reconfigured menu after changes, so that's not the problem. Even few times that icon line made all thing after it to disappear from the menu, with these settings just icon is missing.

Edit: Corrected menu.xml

Last edited by Jatra (2014-01-20 16:24:40)

Offline

#2 2014-01-19 20:35:09

ninian
Member
From: United Kingdom
Registered: 2008-02-24
Posts: 726
Website

Re: [SOLVED]Icons in Openbox right-click-menu

Jatra wrote:

  <item label="Libre Office">
  <item label="Libre Office" icon=/usr/share/icons/gnome/16x16/apps/libreoffice-main.png
    <action name="Execute">
      <command>libreoffice</command>
     </action>
  </item>

There are two <item label="Libre Office"> lines and the second one doesn't have the terminating '>' character ...

Offline

#3 2014-01-20 05:38:28

Jatra
Member
From: Finland
Registered: 2014-01-13
Posts: 22

Re: [SOLVED]Icons in Openbox right-click-menu

Oops, sorry! That missing > is only in this post, not in file, so it's not the problem. Double item label was in the latest version of menu.xml, but not in all versions I've tried. After erasing it away, my menu again stops at the Libre Office label - that is without icon -, and nothing after it. What?!

Offline

#4 2014-01-20 15:43:13

ninian
Member
From: United Kingdom
Registered: 2008-02-24
Posts: 726
Website

Re: [SOLVED]Icons in Openbox right-click-menu

Try specifying the icon file within double quotes thus:

icon="/usr/share/icons/gnome/16x16/apps/libreoffice-main.png"

Offline

#5 2014-01-20 16:24:20

Jatra
Member
From: Finland
Registered: 2014-01-13
Posts: 22

Re: [SOLVED]Icons in Openbox right-click-menu

Oh yes! Just discovered that, and it really was so simple. Thank you again, I'm really trying not to ask questions that stupid again and again...

Offline

Board footer

Powered by FluxBB