[SOLVED] very strange startup issue
Posted
#1
(In Topic #1089)
Enthusiast

Posted
Guru

this is how my $HOME/.config/autostart/Desktop-ish.desktop file looks…
Code
[Desktop Entry]
Type=Application
Exec=/media/bonus/SSDiskspace/git/Desktop-ish/Desktop-ish.gambas
Hidden=false
Name=Desktop-ish
X-MATE-Autostart-Enabled=true
X-MATE-Autostart-Delay=3
X-GNOME-Autostart-Enabled=true
X-GNOME-Autostart-Delay=3
Sometimes a gambas application can start before all it's requirements have loaded (like the system tray for example)
By adding a delay it allows the other things to load first.
It's likely your programs have different requirements and for the one that usually starts they are usually already loaded but for the other they are not.
My X-MATE-Autostart-Delay seems to work at 3 seconds, you might need more on a slower machine like a Pi.
Posted
Guru

For example here is how one of my programs waits untill the Systray has loaded before it continues…
Code (gambas)
Posted
Guru

<IMG src="https://www.cogier.com/gambas/StartDelay.png">
</IMG>
Posted
Enthusiast

the options you provided do not work for me at all. They are ignored. I had to modify the exec line instead
Exec=bash -c "sleep 7 && myapp" seems to function as expected. Will let you know if the solution holds up.
so far day 2 and it is holding up. it's alive
1 guest and 0 members have just viewed this.



