You are not logged in.
Hi everybody,
First post here for me.
After several searches, I still have not found what I am looking for, so here is my question :
Is it possible to add in a .desktop file, some height and width properties to change the default window size when the launcher starts ?
Thank you in advance.
Greetings from France.
Jean-michel
Offline
Hello and welcome.
If the application in question supports the "geometry" parameter (or otherwise supports setting it's own height/width), then you can edit it's .desktop file and add the parameter to the "Exec=" line. It would be a good idea to first copy the .desktop file from the /usr/share/applications folder to ~/.local/share/applications, and edit this file instead of the main one (which might get overwritten during an update).
If it doesn't support the geometry parameter, you'll need to use a tool like devilspie or devilspie2 to force a geometry on an application as it starts.
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
Hi ToZ,
Thanks for your help.
The called app does not support the geometry parameters afaik given it is a simple unix shell.
Jean-michel
Offline
how are you running a unix shell? there should be a terminal emulator program. these (including xfce4terminal) support -geometry but they work with the size units being characters. i have worked with making xfce4terminal run with many geometries as well as font sizes. both will affect the actual size of the window. if you try to specify a window size in pixels like 400x400 is will just end up being full screen because it thinks you mean 400 characters by 400 characters. try 80x25 as a starting point.
Offline
[ Generated in 0.010 seconds, 8 queries executed - Memory usage: 524.89 KiB (Peak: 525.73 KiB) ]