You are not logged in.

#1 2010-02-26 21:17:53

hominym
Member
Registered: 2009-10-22
Posts: 6

Unable to change OpenBox menu

Trying to configure this new Arch installation, and for some reason I can't get rid of the default OpenBox menu. I edit it in Obmenu, save it, and reconfigure: nothing changes. I edit the XML file, save it: nothing changes.

Any idea what's wrong and how to fix it? Any help would be greatly appreciated.

Offline

#2 2010-02-26 21:24:55

brisbin33
Member
From: boston, ma
Registered: 2008-07-24
Posts: 1,799
Website

Re: Unable to change OpenBox menu

just be clear.

you're editing the file at ~/.config/openbox/menu.xml

typing openbox --reconfigure

and nothing changes?

that is odd, very odd.  i know openbox reverts to the default menu if there are errors in menu.xml but i also though that --reconfigure would report errors in that case.

Offline

#3 2010-02-26 21:33:30

stefanwilkens
Member
From: Enschede, the Netherlands
Registered: 2008-12-10
Posts: 624

Re: Unable to change OpenBox menu

Perhaps he forgot to move it to ~/.config/openbox/, or perhaps he moved the files as root? Is the file writable / readable by your user?

Just to be sure:
http://wiki.archlinux.org/index.php/Ope … stallation

when starting openbox, then exiting, are there any error / warning messages dumped to tty1?

Last edited by stefanwilkens (2010-02-26 21:34:03)


Arch i686 on Phenom X4 | GTX760

Offline

#4 2010-02-26 21:39:47

hominym
Member
Registered: 2009-10-22
Posts: 6

Re: Unable to change OpenBox menu

@brisbin33, Yep, that's what I'm doing. It's maddening. I keep having to open terminal windows just to run programs that aren't in the menu.

@stefanwilkens, The menu.xml file is in ~/.config/openbox/ and I have read/write access as a regular user.

Last edited by hominym (2010-02-26 21:43:59)

Offline

#5 2010-02-26 21:45:45

stefanwilkens
Member
From: Enschede, the Netherlands
Registered: 2008-12-10
Posts: 624

Re: Unable to change OpenBox menu

see if openbox is dumping errors, I take it you've also moved rc.xml? though, afaik, openbox will prompt the user if a syntax error was found in menu.xml. Could you post your current menu.xml?

for the time being, you could hotkey an app like gmrun to simplify starting applications.
http://www.archlinux.org/packages/community/i686/gmrun/

*edit*

does your current ~/.config/openbox/rc.xml still have the proper <menu> entry? this is the default:
http://pastebin.com/Zt5ELKdV

Last edited by stefanwilkens (2010-02-26 21:49:21)


Arch i686 on Phenom X4 | GTX760

Offline

#6 2010-02-26 21:52:23

hominym
Member
Registered: 2009-10-22
Posts: 6

Re: Unable to change OpenBox menu

OpenBox shows no errors when running openbox --reconfigure, and rc.xml has been moved as well.

Current menu.xml is just the default:

<?xml version="1.0" encoding="utf-8"?>
<openbox_menu xmlns="http://openbox.org/3.4/menu">
    <menu id="apps-accessories-menu" label="Accessories">
        <item label="Calculator">
            <action name="Execute">
                <command>
                    gnome-calculator
                </command>
                <startupnotify>
                    <enabled>
                        yes
                    </enabled>
                </startupnotify>
            </action>
        </item>
        <item label="Character Map">
            <action name="Execute">
                <command>
                    gnome-character-map
                </command>
                <startupnotify>
                    <enabled>
                        yes
                    </enabled>
                </startupnotify>
            </action>
        </item>
        <item label="Ark File Archiver">
            <action name="Execute">
                <command>
                    ark
                </command>
                <startupnotify>
                    <enabled>
                        yes
                    </enabled>
                </startupnotify>
            </action>
        </item>
    </menu>
    <menu id="apps-editors-menu" label="Editors">
        <item label="GVim">
            <action name="Execute">
                <command>
                    gvim
                </command>
                <startupnotify>
                    <enabled>
                        yes
                    </enabled>
                    <wmclass>
                        GVim
                    </wmclass>
                </startupnotify>
            </action>
        </item>
        <item label="Emacs">
            <action name="Execute">
                <command>
                    emacs
                </command>
                <startupnotify>
                    <enabled>
                        yes
                    </enabled>
                    <wmclass>
                        Emacs
                    </wmclass>
                </startupnotify>
            </action>
        </item>
        <item label="GEdit">
            <action name="Execute">
                <command>
                    gedit
                </command>
                <startupnotify>
                    <enabled>
                        yes
                    </enabled>
                </startupnotify>
            </action>
        </item>
        <item label="Kate">
            <action name="Execute">
                <command>
                    kate
                </command>
                <startupnotify>
                    <enabled>
                        yes
                    </enabled>
                </startupnotify>
            </action>
        </item>
        <item label="Kwrite">
            <action name="Execute">
                <command>
                    kwrite
                </command>
                <startupnotify>
                    <enabled>
                        yes
                    </enabled>
                </startupnotify>
            </action>
        </item>
    </menu>
    <menu id="apps-term-menu" label="Terminals">
        <item label="Rxvt Unicode">
            <action name="Execute">
                <command>
                    urxvt
                </command>
            </action>
        </item>
        <item label="Gnome Terminal">
            <action name="Execute">
                <command>
                    gnome-terminal
                </command>
                <startupnotify>
                    <enabled>
                        yes
                    </enabled>
                </startupnotify>
            </action>
        </item>
        <item label="Xfce Terminal">
            <action name="Execute">
                <command>
                    xfce4-terminal
                </command>
                <startupnotify>
                    <enabled>
                        yes
                    </enabled>
                </startupnotify>
            </action>
        </item>
        <item label="Konsole">
            <action name="Execute">
                <command>
                    konsole
                </command>
                <startupnotify>
                    <enabled>
                        yes
                    </enabled>
                </startupnotify>
            </action>
        </item>
        <item label="Xterm">
            <action name="Execute">
                <command>
                    xterm
                </command>
            </action>
        </item>
    </menu>
    <menu id="apps-net-menu" label="Internet">
        <item label="Firefox">
            <action name="Execute">
                <command>
                    firefox
                </command>
                <startupnotify>
                    <enabled>
                        yes
                    </enabled>
                    <wmclass>
                        Firefox
                    </wmclass>
                </startupnotify>
            </action>
        </item>
        <item label="Opera">
            <action name="Execute">
                <command>
                    opera
                </command>
                <startupnotify>
                    <enabled>
                        yes
                    </enabled>
                    <wmclass>
                        Opera
                    </wmclass>
                </startupnotify>
            </action>
        </item>
        <item label="Konqueror">
            <action name="Execute">
                <command>
                    konqueror
                </command>
                <startupnotify>
                    <enabled>
                        yes
                    </enabled>
                </startupnotify>
            </action>
        </item>
        <item label="Epiphany">
            <action name="Execute">
                <command>
                    epiphany
                </command>
                <startupnotify>
                    <enabled>
                        yes
                    </enabled>
                </startupnotify>
            </action>
        </item>
        <item label="Pidgin Instant Messenger">
            <action name="Execute">
                <command>
                    pidgin
                </command>
                <startupnotify>
                    <enabled>
                        yes
                    </enabled>
                </startupnotify>
            </action>
        </item>
        <item label="Kopete Instant Messenger">
            <action name="Execute">
                <command>
                    kopete
                </command>
                <startupnotify>
                    <enabled>
                        yes
                    </enabled>
                </startupnotify>
            </action>
        </item>
        <item label="XChat">
            <action name="Execute">
                <command>
                    xchat
                </command>
                <startupnotify>
                    <enabled>
                        yes
                    </enabled>
                </startupnotify>
            </action>
        </item>
    </menu>
    <menu id="apps-office-menu" label="Office">
        <item label="OpenOffice Base">
            <action name="Execute">
                <command>
                    ooffice -base
                </command>
            </action>
        </item>
        <item label="OpenOffice Calc">
            <action name="Execute">
                <command>
                    ooffice -calc
                </command>
            </action>
        </item>
        <item label="OpenOffice Draw">
            <action name="Execute">
                <command>
                    ooffice -draw
                </command>
            </action>
        </item>
        <item label="OpenOffice Impress">
            <action name="Execute">
                <command>
                    ooffice -impress
                </command>
            </action>
        </item>
        <item label="OpenOffice Math">
            <action name="Execute">
                <command>
                    ooffice -math
                </command>
            </action>
        </item>
        <item label="OpenOffice Printer Administration">
            <action name="Execute">
                <command>
                    ooffice-printeradmin
                </command>
            </action>
        </item>
        <item label="OpenOffice Writer">
            <action name="Execute">
                <command>
                    ooffice -writer
                </command>
            </action>
        </item>
    </menu>
    <menu id="apps-multimedia-menu" label="Multimedia">
        <item label="Amarok">
            <action name="Execute">
                <command>
                    amarok
                </command>
                <startupnotify>
                    <enabled>
                        yes
                    </enabled>
                </startupnotify>
            </action>
        </item>
        <item label="Rhythmbox">
            <action name="Execute">
                <command>
                    rhythmbox
                </command>
                <startupnotify>
                    <enabled>
                        yes
                    </enabled>
                </startupnotify>
            </action>
        </item>
        <item label="K3b">
            <action name="Execute">
                <command>
                    k3b
                </command>
                <startupnotify>
                    <enabled>
                        yes
                    </enabled>
                </startupnotify>
            </action>
        </item>
        <item label="MPlayer">
            <action name="Execute">
                <command>
                    gmplayer
                </command>
                <startupnotify>
                    <enabled>
                        yes
                    </enabled>
                    <wmclass>
                        MPlayer
                    </wmclass>
                </startupnotify>
            </action>
        </item>
        <item label="Totem">
            <action name="Execute">
                <command>
                    totem
                </command>
                <startupnotify>
                    <enabled>
                        yes
                    </enabled>
                </startupnotify>
            </action>
        </item>
    </menu>
    <menu id="apps-fileman-menu" label="File Managers">
        <item label="Nautilus">
            <action name="Execute">
                <command>
                    nautilus --no-desktop --browser
                </command>
                <startupnotify>
                    <enabled>
                        yes
                    </enabled>
                </startupnotify>
            </action>
        </item>
        <item label="Thunar">
            <action name="Execute">
                <command>
                    Thunar
                </command>
                <startupnotify>
                    <enabled>
                        yes
                    </enabled>
                </startupnotify>
            </action>
        </item>
        <item label="Kock">
            <action name="Execute">
                <command>
                    kfmclient openURL ~
                </command>
                <startupnotify>
                    <enabled>
                        yes
                    </enabled>
                </startupnotify>
            </action>
        </item>
        <item label="Rox">
            <action name="Execute">
                <command>
                    rox
                </command>
                <startupnotify>
                    <enabled>
                        yes
                    </enabled>
                    <wmclass>
                        ROX-Filer
                    </wmclass>
                </startupnotify>
            </action>
        </item>
        <item label="PCMan File Manager">
            <action name="Execute">
                <command>
                    pcmanfm
                </command>
                <startupnotify>
                    <enabled>
                        yes
                    </enabled>
                </startupnotify>
            </action>
        </item>
    </menu>
    <menu id="apps-graphics-menu" label="Graphics">
        <item label="Gimp">
            <action name="Execute">
                <command>
                    gimp
                </command>
                <startupnotify>
                    <enabled>
                        yes
                    </enabled>
                </startupnotify>
            </action>
        </item>
        <item label="Gwenview">
            <action name="Execute">
                <command>
                    gwenview
                </command>
                <startupnotify>
                    <enabled>
                        yes
                    </enabled>
                </startupnotify>
            </action>
        </item>
        <item label="Dia Diagram Editor">
            <action name="Execute">
                <command>
                    dia
                </command>
                <startupnotify>
                    <enabled>
                        yes
                    </enabled>
                </startupnotify>
            </action>
        </item>
        <item label="Inkscape">
            <action name="Execute">
                <command>
                    inkscape
                </command>
                <startupnotify>
                    <enabled>
                        yes
                    </enabled>
                </startupnotify>
            </action>
        </item>
    </menu>
    <menu id="system-menu" label="System">
        <item label="Openbox Configuration Manager">
            <action name="Execute">
                <command>
                    obconf
                </command>
                <startupnotify>
                    <enabled>
                        yes
                    </enabled>
                </startupnotify>
            </action>
        </item>
        <item label="Gnome Control Center">
            <action name="Execute">
                <command>
                    gnome-control-center
                </command>
                <startupnotify>
                    <enabled>
                        yes
                    </enabled>
                </startupnotify>
            </action>
        </item>
        <item label="KDE Control Center">
            <action name="Execute">
                <command>
                    kcontrol
                </command>
                <startupnotify>
                    <enabled>
                        yes
                    </enabled>
                </startupnotify>
            </action>
        </item>
        <item label="Xfce Settings">
            <action name="Execute">
                <command>
                    xfce-setting-show
                </command>
                <startupnotify>
                    <enabled>
                        yes
                    </enabled>
                </startupnotify>
            </action>
        </item>
        <item label="Manage Cups Printers">
            <action name="Execute">
                <command>
                    xdg-open http://localhost:631/
                </command>
                <startupnotify>
                    <enabled>
                        no
                    </enabled>
                    <icon>
                        cups
                    </icon>
                </startupnotify>
            </action>
        </item>
        <separator/>
        <item label="Reconfigure Openbox">
            <action name="Reconfigure"/>
        </item>
    </menu>
    <menu id="root-menu" label="Openbox 3">
        <separator label="Applications"/>
        <menu id="apps-accessories-menu"/>
        <menu id="apps-editors-menu"/>
        <menu id="apps-graphics-menu"/>
        <menu id="apps-net-menu"/>
        <menu id="apps-office-menu"/>
        <menu id="apps-multimedia-menu"/>
        <menu id="apps-term-menu"/>
        <menu id="apps-fileman-menu"/>
        <separator label="System"/>
        <menu id="system-menu"/>
        <separator/>
        <item label="Log Out">
            <action name="Exit">
                <prompt>
                    yes
                </prompt>
            </action>
        </item>
    </menu>
</openbox_menu>

I was thinking about just using dmenu, but I'm building this system for my sister, whose knowledge of Linux is pretty rudimentary.

Offline

#7 2010-02-26 21:58:01

hominym
Member
Registered: 2009-10-22
Posts: 6

Re: Unable to change OpenBox menu

My rc.xml currently shows this for the <menu> section:

<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>200</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 -->
  <applicationIcons>yes</applicationIcons>
  <!-- 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>

So, yeah, that would be the problem.

Last edited by hominym (2010-02-26 22:08:17)

Offline

#8 2010-02-26 22:05:12

hominym
Member
Registered: 2009-10-22
Posts: 6

Re: Unable to change OpenBox menu

Update: pasted the code from your link and I'm still having this problem. Updated rc.xml below.

<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>$HOME/.config/openbox/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>200</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 -->
  <applicationIcons>yes</applicationIcons>
  <!-- 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>

Last edited by hominym (2010-02-26 22:05:37)

Offline

#9 2010-02-28 05:49:18

anonymous_user
Member
Registered: 2009-08-28
Posts: 3,059

Re: Unable to change OpenBox menu

Do you have an autostart.sh file in ~/.config/openbox/?

Offline

#10 2010-02-28 11:37:17

stefanwilkens
Member
From: Enschede, the Netherlands
Registered: 2008-12-10
Posts: 624

Re: Unable to change OpenBox menu

hominym wrote:

Update: pasted the code from your link and I'm still having this problem. Updated rc.xml below.

Try replacing this (in the $HOME/.config/openbox/rc.xml file):

...
<file>$HOME/.config/openbox/menu.xml</file>
...

with this:

<file>menu.xml</file>

then do:

openbox --reconfigure

Last edited by stefanwilkens (2010-02-28 11:38:55)


Arch i686 on Phenom X4 | GTX760

Offline

#11 2010-03-02 04:16:51

hominym
Member
Registered: 2009-10-22
Posts: 6

Re: Unable to change OpenBox menu

Thanks all for the help, but I've decided to just edit the menu the old fashioned way. It seems that I can replace the menu.xml file with another that it'll recognize. Obmenu just doesn't want to work though.

Offline

#12 2013-03-06 05:20:24

browntown
Member
From: Salem, OR USA
Registered: 2012-11-20
Posts: 63

Re: Unable to change OpenBox menu

I'm editing an old post instead of posting another one because there are several of these threads floating around where folks can't save changes in obmenu.

It appears to be a permissions thing.  But if you sudo obmenu you may find a different menu.xml that lives in root.

So the invocation that gets the ability to save once in obmenu is:

sudo obmenu ~/.config/openbox/menu.xml

and if you're launching obmenu through your openbox menu, change the menu entry as well to something like

<item label="Menu Editor">
			<action name="Execute">
				<execute>sudo obmenu ~/.config/openbox/menu.xml</execute>
			</action>
		</item>

Offline

#13 2013-03-06 06:37:50

dag
Member
From: US
Registered: 2013-01-20
Posts: 216

Re: Unable to change OpenBox menu

one problem I had when using obmenu is I would have to delete the defaults and enter a new execute(make sure to make a new one before deleting the last or the menu your working with gets deleted) and enter the information otherwise it would not work for my apps even if I edited them. there is also when creating new menus you have to follow the same format ie app-"name of menu"-menu then uptop use the id and any label. the openbox part below is basacally the firmost visual of the menu and also the order of them.


--------------------------------------
alcoves wonder creates the wonder unto the ages; never lose that.

Offline

Board footer

Powered by FluxBB