Please Note: the answer below will work with window managers such as xfwm4, metacity, and others, but will not with
compiz, because of the way the desktop and windows are handled (being divided into viewports). As mhc noted, you will have to use ccsm, as explained in comment above, and refer to this askubuntu answer.
You don't need to add anything to the
.desktop file, just edit the config file in your home folder.
$HOME/.config/gummi/gummi.cfg and set the dimensions to your screen size and it will launch maximised. The dimensions will vary according to your maximum resolution; for example they could be 1280x1024, 1920x1080, etc.
Here is the original section in
config_version = 0.6.1
mainwindow_x = 244
mainwindow_y = 233
mainwindow_w = 792
mainwindow_h = 558
As an example, I would change 792 and 558 to 1280 and 1024, so that it would launch maximised next time. Edit the file and then relaunch
gummi. Whatever you put in will be adjusted by the program when it launches, so don't worry about specifying the exact values.
If you mess up the configuration file, just delete it and it will be respawned when
You could also use
devilspie, which is in the repositories.
sudo apt-get install devilspie
Now create a
~/.devilspie folder if it doesn't already exist, and create a profile for gummi, so that when gummi runs, it will trigger
devilspie to maximise the window. Name the file
gummi.ds and place this in it:
; gummi maximise
(if (is (window_class) "Gummi") (maximize) )
devilspie must be added to startup applications, as it needs to be running.
It is worth trying
devilspie as it is a very useful application for manipulating chosen windows, but may not work if you are running compiz.