feh is not launching even if I run it custom.sh manually, logger commands print stuff inside /var/log/memes.log, but nothing for /var/log/feh-autostart.log, running this feh command does work outside of the script.
root@DietPi:/var/log# systemctl status dietpi-autostart_custom
Unit dietpi-autostart_custom.service could not be found.
I’m pretty sure I’m missing something realllly obvious here, but I’m stuck, thank you to anyone reading this, or even helping, and thanks to anyone involved in dietpi, this os is really really amazing <3
Still not launching with /usr/bin/feh, this time my feh-autostart.log is created but it’s empty, and this time memes.log is empty too. Inside « steps to reproduce » I forgot to say I configured auto login custom autostart settings, but maybe it’s obvious.
Thank you @WarHawk !
On which file ? custom.sh ? I did chmod +x on it, ls -la : -rwxr-xr-x 1 root root 419 Dec 19 02:21 custom.sh
Also autologin is root so I guess it may be something else ? For feh I’m not sure I would need to do something permissions related but : -rwxr-xr-x 1 root root 200432 Jan 31 2023 /usr/bin/feh
also startx could be problematic since it is an foreground process, which will block the shell until it exits again.
you can try and add a trailing & to the commands to fork it into background.
Actually, totally wrong call from my side here, I misunderstood the custom script with autologin (17), I thought it would be possible to startx then launch /usr/bin/feh inside X !
What did work was to use autostart (2) Desktop Automatic Login then edit this file : /etc/xdg/lxsession/LXDE/autostart
I have no idea if this “feature” needs to be added inside Other category in dietpi-autostart or if it is only me that doesn’t understand things the right way.