lanoxx / tilda

A Gtk based drop down terminal for Linux and Unix
GNU General Public License v2.0
1.27k stars 162 forks source link

Dimensions are not applied on autostart #460

Open jhkst opened 3 years ago

jhkst commented 3 years ago

Having tilda set to be loaded on start, and having set dimensions (width and eight) in preferences, application is not start with these dimensions. OS: Fedora 32, kernel 5.11.15-100.fc32.x86_64, Gnome 3.36.9, tilda-1.5.4-1.fc32.x86_64 Startup configuration: ~/.config/autostart/tilda.desktop

[Desktop Entry]
Name=Tilda
Exec=/usr/bin/tilda
Icon=tilda
Terminal=false
Type=Application
Categories=GNOME;GTK;System;Utility;TerminalEmulator;
X-Desktop-File-Install-Version=0.24

Preferences->Apperance->Width & Height: 89% Shortcut for pull down: F12 key

After system/Gnome is restarted, tilda doesn't have set dimensions. Workaround: Just go to preferences and change temporarily at least one of dimensions value, tilda is immediately adjusted

lanoxx commented 3 years ago

I am not a 100% certain on why this occurs, but here is a guess. I believe that the window manager needs to be running to make valid requests to the window geometry. If tilda is started as part of the autostart code, then it is possible, that it is started in parallel to other processes of the session and possibly the window manager has not yet started or has not finished starting. I have seen other occurrences of similar issues related to autostart. You could try to wrap the tilda command in a shell script and sleep a few seconds before you start tilda. That might not be a solution but if that works it would confirm my thesis.

In any case here is how my autostart file looks like:

[Desktop Entry]
Type=Application
Exec=tilda
Hidden=false
NoDisplay=false
X-GNOME-Autostart-enabled=true
Name[en_AU]=Tilda
Name=Tilda
maxreuben commented 2 years ago

I face the same issue on Tilda 1.5.4 in Fedora 34 and Gnome 40.6. The workaround works but it'd be nice if there was a command line option to set the width and height. Maybe that way the autostart command can set the right size on startup.

dchurch315 commented 1 year ago

You can edit the Autostart file in ~/.config/Autostart/ with a delay to eliminate this issue - I also see this happening whenever the Gnome Fractional Scaling is invoked. The line to add to Autostart for a 2 second delay is:

X-GNOME-Autostart-Delay=2

Linux Mint users can set a delay directly in the Startup Applications GUI