udiskie icon indicating copy to clipboard operation
udiskie copied to clipboard

Autostart at boot

Open kyuzumaki opened this issue 2 years ago • 2 comments

Is there a recommended way to auto start udiskie on startup? Specifically on a machine that is headless and not using a gui? I have tried a shell script to call

udiskie -aNT &

But this doesn't work I think because its happening too early during the boot. It would be really useful to have a setting or script to enable/disable auto starting.

kyuzumaki avatar Aug 31 '21 21:08 kyuzumaki

Hi,

autostart completely depends on your setup and is not really an application level responsibility.

e.g. if using a custom window manager, you would put it in .xinitrc. If your window manager/desktop environment has autostart applications, you can put it there. On a headless machine with systemd, you could put it e.g. in a unit file that is activated by the multi-user.target, otherwise you may have to write an init script for your init system.

But this doesn't work I think because its happening too early during the boot. It would be really useful to have a setting or script to enable/disable auto starting.

How did you set it up, and what happens exactly? Do you have a log file? Did you setup the XXX-other permissions as described in the wiki?

coldfix avatar Sep 01 '21 14:09 coldfix

I used a small shell script and crontab @reboot to run it. For whatever reason this has proven to be unreliable so I think systemd will be better. Though its easy to make one I found a pre made .service file on github. https://github.com/hrehfeld/udiskie-systemd/blob/master/udiskie.service

kyuzumaki avatar Oct 01 '21 14:10 kyuzumaki