Expanding on this article previously written regarding launching Gnome Terminals from Ubuntu menu items would be if you want to set the size of the Gnome Terminal. The terminal window is launched using gnome-terminal as shown in more detail below. You can use the –geometry switch to set the size of the Gnome Terminal window which is shown in the second example below.
Set Terminal Size When Using gnome-terminal:
The initial example used looked like the below.
- [Desktop Entry]
- Version=1.0
- Name=Watch Listeners
- Categories=Application;System;
- Exec=gnome-terminal -e /usr/local/bin/watchlisteners.sh
- Terminal=true
- Type=Application
- Name[en_US]=Watch Listeners
- GenericName[en_US]=Watch Listeners
Using –geometry will allow you to set the launched terminal window size as shown below.
- [Desktop Entry]
- Version=1.0
- Name=Watch Listeners
- Categories=Application;System;
- Exec=gnome-terminal --geometry 115x15+100+20 -e /usr/local/bin/watchlisteners.sh
- Terminal=true
- Type=Application
- Name[en_US]=Watch Listeners
- GenericName[en_US]=Watch Listeners
As you can see above –geometry XXXX will set the terminal window size when its launched.