I have added Evolution to my Session and Startup panel (using Xfce), and it launches fine at startup. However, my wifi network connects a few seconds later so I end up having Evolution throw error messages about not connecting etc.
How do I delay (let’s say by 30 secs or 1 min) Evolution’s start or, better, make it depend on NetworkManager being up before starting?
It is a bit unsophisticated (a bigger hammer?) - but I would create a little script file to enable the startup with a delay - as I don’t think XFCE has the delay capability built in. Theoretically you could alternatively build it into the Exec= of Evolution’s .desktop file, but that would leave you with a delay every time you start it any other way!
The resulting file would be something like:
#!/bin/bash
sleep 15s
evolution
with you replacing ‘evolution’ with whatever command actually starts it up from a terminal. Make it executable (chmod +x scriptname) and point the Session and Startup entry to the script instead of the actual program. Hope this helps - if no-one drops by with a better way
Another possibility is to check the startup applications settings, e.g. MATE has this:
Not sure if Xfce has something similar, but then you can manually edit the launcher under $HOME/.config/autostart/ and set the Exec= line to include a sleep,
You could probably do the same by creating a script file wherever you want it, then using KDE’s System Settings > Startup and Shutdown > Autostart and use the “Add Script” button.
For example to start my conky.desktop file that I created into ~/.config/autostart/ it appears in this GUI Session at start where you see the delay in second, here 5s