Autostart program at boot

Questions specific to the Xfce DE go here
GreenMartian
Posts: 9
Joined: 27 Oct 2016 22:31

Autostart program at boot

Postby GreenMartian » 03 Jan 2017 05:48

Good evening,

Just trying to auto-start a media player to the system tray (XFCE) at boot.

For example, Audacious or Clementine.

sudo systemctl start (or enable) eitheroftheabove = can't find service.

I've also added a XFCE autostart command to boot. For example, /usr/bin/clementine.

Neither appear to be working.

Would anybody know a solution?

Thanks
8-)

User avatar
Schoelje
Site Admin
Posts: 8445
Joined: 26 Jan 2013 19:36
Location: Netherlands
Contact:

Re: Autostart program at boot

Postby Schoelje » 03 Jan 2017 08:17

Have you tried to copy the .desktop file from /usr/share/applications/ to ~/.config/autostart/ ?


SolydXK needs you!
Development | Testing | Translations

GreenMartian
Posts: 9
Joined: 27 Oct 2016 22:31

Re: Autostart program at boot

Postby GreenMartian » 03 Jan 2017 09:12

Thanks for your reply Schoelje.

Yes, I sure have. The .desktop files are added to the autostart folder. By manually adding them to through the system & startup tab via settings, they were placed there. I've just checked that they are indeed present.

Having used XFCE for quite some time, I've never had multiple programs fail to run at boot. It seems to coincide with systemd.

Any other ideas?

kurotsugi
Posts: 1938
Joined: 09 Jan 2014 00:17

Re: Autostart program at boot

Postby kurotsugi » 03 Jan 2017 09:51

no, it doesn't. systemd manages services. the autostart stuff are managed by desktop. it could be either the autostart function didn't work or you got the wrong script. sometimes it necessary to give the desktop enough time. the script would be

Code: Select all

sleep 60
<program name>


Return to “Xfce specific (SolydX)”

Who is online

Users browsing this forum: No registered users and 1 guest