Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 3531

Raspberry Pi OS • [Solved] Qt application won't autostart

$
0
0
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:

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=3
And made it executable with:

Code:

chmod +x fotobox.desktop
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.

Statistics: Posted by ggigabyte — Sun Dec 21, 2025 3:02 pm



Viewing all articles
Browse latest Browse all 3531

Trending Articles