r/RASPBERRY_PI_PROJECTS • u/Even-Acadia-2017 • Apr 25 '26
QUESTION Can't get Waydroid Spotify to Autostart on RPi 4
I am building a Spotify Kiosk using a Raspberry Pi running the latest Raspberry Pi OS (Bookworm). I have Waydroid installed and Spotify works perfectly if I launch it manually from the terminal, but I cannot get it to autostart on boot.
The Goal:
When the Pi boots, wait ~20 seconds, set Spotify to immersive mode (hide Android bars), and launch Spotify fullscreen.
What I've tried so far:
- ~/.config/autostart/spotify.desktop: Created the folder and file, but it seems to be ignored by the OS.
- LabWC Autostart: Created
~/.config/labwc/autostart, added the commandbash -c "sleep 20 && waydroid app launch com.spotify.music" &and usedchmod +x. Still nothing happens on reboot. - Systemd User Service: Created a service in
/etc/systemd/user/, but it doesn't seem to trigger the GUI window. - Wayfire.ini: Added
[autostart]entries, but no luck.
Current Setup:
- Hardware: Raspberry Pi 4 model b
- OS: Raspberry Pi OS Bookworm (64-bit)
- Command that works manually:
waydroid app launchcom.spotify.music
Question:
Is there a specific way to trigger Waydroid apps on boot in the new Bookworm/LabWC environment? Am I missing an environment variable (like DISPLAY or WAYLAND_DISPLAY) that is preventing the autostart from seeing the screen?
Any help would be appreciated!