error starting program at startup (gnome)

Hello.
I use Mozilla sunbird, and I like that this program run when I start my gnome graphical session, so it can show me the alarms. I have put it in “startup programs”, so it is now in the list of startup applications.

The problem is that sometimes it start but sometimes not :silly:

Any idea?

I forgot to include my “.config/autostart/sunbird-1.desktop”

#!/usr/bin/env xdg-open

[Desktop Entry]
Version=1.0
Type=Application
Terminal=false
Icon[es_ES]=/opt/sunbird/icons/mozicon128.png
Exec=/opt/sunbird/sunbird
Name[es_ES]=sunbird
Name=sunbird
Icon=/opt/sunbird/icons/mozicon128.png

Try to add the line:
X-GNOME-Autostart-enabled=true
at the end of this file.

Thank you.

I’ve been checking it, and it works “almost” every time. I have to be something else, but now I’m fine with it to stop searching.