I want to use my Raspberry Pi 5 with Bookworm as kiosk. For this purpose, I would like a PySide6 application to start automatically when the user logs in (auto-login is on).
I've put the following desktop file in /etc/xdg/autostart:
And made it executable with:
When I double-click the desktop file, it works as expected. The problem is that when I restart the Pi, the application doesn't launch automatically. I've also tried to put the desktop file in ~/.config/autostart, but no luck. Any help would be very appreciated.
I've put the following desktop file in /etc/xdg/autostart:
Code:
[Desktop Entry]Type=ApplicationName=fotoboxPath=/usr/local/bin/fotoboxExec=sh -c "sleep 3 && /usr/local/bin/fotobox/.venv/bin/python /usr/local/bin/fotobox/main.pyw"Icon=/usr/local/bin/fotobox/assets/icon.pngComment=DVT FotoboxEncoding=UTF-8Version=1.0Terminal=falseHidden=falseStartupNotify=falseCategories=Graphics;X-GNOME-Autostart-enabled=trueX-GNOME-Autostart-Delay=3Code:
chmod +x fotobox.desktopStatistics: Posted by ggigabyte — Sun Dec 21, 2025 3:02 pm