Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to configure my openbox's menu.xml, and I would like to define a menu entry which launch a maximize application, for example firefox.

<menu id="root-menu" label="OpenBox 3">
    <item label="firefox">
        <action name="Execute">
        <action name="Maximize" />

But it doesn't work. After some test, I think that only the first action is execute.

Someone have a solution ?

share|improve this question
up vote 4 down vote accepted

Here is a way to open all applications maximized when using the Openbox window manager. (I do not know which distro OP is using and so two slightly different routes are suggested.)

For distros other than Lubuntu:
Make a backup of /etc/xdg/openbox/rc.xml for safety
Open /etc/xdg/openbox/rc.xml with a text editor
Go to the bottom of the file. You should see:

Just above the line with </applications>, paste the following:
<application class="*">
Save rc.xml
Open a terminal and run openbox --reconfigure. This will make Openbox aware of the changes. If not effective, log out and back in. From now on, all applications will open maximized.


For Lubuntu 12.10 users, edit ~/.config/openbox/lubuntu-rc.xml instead of /etc/xdg/openbox/rc.xml. (I verified this because I'm using Lubuntu 12.10.)
If you decide you don't want all applications to open maximized, but just some specific ones, you will need the following code instead of the one above for each application that you want maximized:
<application class="......"> (See below)

  • Note that the way to find out the application class is via xprop.
  • You will need to have a terminal window open as well as a window of the application whose class you need to find.
  • Type xprop _OB_APP_CLASS in the terminal window and press Enter.
  • Notice the cursor will have changed its appearance to cross-hairs.
  • Now, using the mouse, click in the window of the application you need.
  • Then, look back at the output in the terminal. For example, if I run xprop _OB_APP_CLASS and click on a window belonging to Google Chrome, I see: _OB_APP_CLASS(UTF8_STRING) = "Google-chrome" and "Google-chrome", including the quotes, is exactly what should be typed as the application class.
  • You will need to do this for each application you desire to have open maximized.
    One side-effect of <maximized>yes</maximized> is that not just the primary window but other windows open maximized. For example, in Firefox, pressing Alt > Edit > Preferences or Alt > Help > About will result in maximized panes. The same happens in Chrome's Task Manager (Shift+Esc).

If such behavior is undesirable, xprop will need to be run for both primary and secondary windows to see if they can be distinguished.
For the Chrome, Firefox, Opera and Seamonkey browsers, the following code maximizes only the browser window proper and not "internal" windows:
<application role="browser">

share|improve this answer
Yes, but the window is not really maximize and I can still move it. And how could I do for other application ? – arthropode Mar 30 '13 at 2:39
I have rewritten the answer to provide really maximized windows for all applications. – user25656 Mar 30 '13 at 5:16
Thank you. It is OK now. – arthropode Mar 30 '13 at 8:25

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.