Formula Name
sunshine-beta
Homebrew Version
Homebrew 5.1.7
Operating System
Bazzite 43.20260420
Describe the Issue
The installation works correctly, but the created service unit is missing parameters.
The service unit created by Homebrew doesn't match the one that exists in dev.lizardbyte.app.Sunshine.service.in on the main repository.
When setting up the service using brew services start sunshine-beta it enables a service unit that is missing the After=graphical-session.target xdg-desktop-autostart.target xdg-desktop-portal.service line, resulting in Sunshine attempting to initialize before Wayland is ready.
Depending on your setup, this may lead to errors due to WAYLAND_DISPLAY not being set.
It works correctly after restarting, and it works as expected on boot after overriding the service unit file.
Relevant Terminal Output
❯ cat homebrew.sunshine-beta.service
[Unit]
Description=Homebrew generated unit for sunshine-beta
[Install]
WantedBy=default.target
[Service]
Type=simple
ExecStart="/home/linuxbrew/.linuxbrew/opt/sunshine-beta/bin/sunshine" "/home/username/.config/sunshine/sunshine.conf"
Full Installation Log
Not relevant, installation is successful.
Installation Command Used
brew tap LizardByte/homebrew
brew install sunshine-beta
brew services start sunshine-beta
Additional Context
Sunshine logs after first boot:
[2026-04-24 10:49:24.069]: Info: Sunshine version: 2026.423.21833 commit: 5cf5e8c1ceb0a0d3630851a09b19577a96bbe9b8
[2026-04-24 10:49:24.069]: Info: Package Publisher: LizardByte
[2026-04-24 10:49:24.069]: Info: Publisher Website: https://app.lizardbyte.dev/
[2026-04-24 10:49:24.069]: Info: Get support: https://app.lizardbyte.dev/support
[2026-04-24 10:49:24.069]: Info: config: 'encoder' = vulkan
[2026-04-24 10:49:24.069]: Info: config: 'output_name' = 1
[2026-04-24 10:49:24.070]: Error: Failed to gain CAP_SYS_ADMIN
[2026-04-24 10:49:24.070]: Info: /dev/dri/card2 -> amdgpu
[2026-04-24 10:49:24.071]: Error: Failed to gain CAP_SYS_ADMIN
[2026-04-24 10:49:24.072]: Info: /dev/dri/card1 -> amdgpu
[2026-04-24 10:49:24.072]: Error: Failed to gain CAP_SYS_ADMIN
[2026-04-24 10:49:24.072]: Error: Couldn't get handle for DRM Framebuffer [129]: Probably not permitted
[2026-04-24 10:49:24.072]: Error: [wayland] Environment variable WAYLAND_DISPLAY has not been defined
[2026-04-24 10:49:24.072]: Info: [portalgrab] Loaded portal restore token from disk
[2026-04-24 10:49:24.079]: Error: [wayland] Environment variable WAYLAND_DISPLAY has not been defined
[2026-04-24 10:49:24.080]: Info: [portalgrab] Found stream for display: '' position: 0x0 resolution: 2560x1440
[2026-04-24 10:49:24.080]: Info: [portalgrab] Found stream for display: '' position: 2560x0 resolution: 1152x2048
[2026-04-24 10:49:24.178]: Info: Trying encoder [vulkan]
[2026-04-24 10:49:24.178]: Info: Screencasting with XDG portal
[2026-04-24 10:49:24.179]: Info: [pipewire] Requested frame rate [60/1, approx. 60 fps]
[2026-04-24 10:49:24.180]: Error: [wayland] Environment variable WAYLAND_DISPLAY has not been defined
[2026-04-24 10:49:24.380]: Info: Screencasting with XDG portal
[2026-04-24 10:49:24.380]: Info: [pipewire] Requested frame rate [60/1, approx. 60 fps]
[2026-04-24 10:49:24.380]: Error: [wayland] Environment variable WAYLAND_DISPLAY has not been defined
[2026-04-24 10:49:24.580]: Info: Encoder [vulkan] failed
[2026-04-24 10:49:24.580]: Error: Couldn't find any working encoder matching [vulkan]
[2026-04-24 10:49:24.580]: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. //
[2026-04-24 10:49:24.580]: Info: Trying encoder [nvenc]
[2026-04-24 10:49:24.580]: Info: Screencasting with XDG portal
[2026-04-24 10:49:24.580]: Info: [pipewire] Requested frame rate [60/1, approx. 60 fps]
[2026-04-24 10:49:24.580]: Error: [wayland] Environment variable WAYLAND_DISPLAY has not been defined
[2026-04-24 10:49:24.781]: Info: Screencasting with XDG portal
[2026-04-24 10:49:24.781]: Info: [pipewire] Requested frame rate [60/1, approx. 60 fps]
[2026-04-24 10:49:24.781]: Error: [wayland] Environment variable WAYLAND_DISPLAY has not been defined
[2026-04-24 10:49:24.981]: Info: Encoder [nvenc] failed
[2026-04-24 10:49:24.981]: Info: Trying encoder [vaapi]
[2026-04-24 10:49:24.981]: Info: Screencasting with XDG portal
[2026-04-24 10:49:24.981]: Info: [pipewire] Requested frame rate [60/1, approx. 60 fps]
[2026-04-24 10:49:24.981]: Error: [wayland] Environment variable WAYLAND_DISPLAY has not been defined
[2026-04-24 10:49:25.182]: Info: Screencasting with XDG portal
[2026-04-24 10:49:25.182]: Info: [pipewire] Requested frame rate [60/1, approx. 60 fps]
[2026-04-24 10:49:25.182]: Error: [wayland] Environment variable WAYLAND_DISPLAY has not been defined
[2026-04-24 10:49:25.382]: Info: Encoder [vaapi] failed
[2026-04-24 10:49:25.382]: Info: Trying encoder [software]
[2026-04-24 10:49:25.382]: Info: Screencasting with XDG portal
[2026-04-24 10:49:25.382]: Info: [pipewire] Requested frame rate [60/1, approx. 60 fps]
[2026-04-24 10:49:25.382]: Error: [wayland] Environment variable WAYLAND_DISPLAY has not been defined
[2026-04-24 10:49:25.582]: Info: Screencasting with XDG portal
[2026-04-24 10:49:25.582]: Info: [pipewire] Requested frame rate [60/1, approx. 60 fps]
[2026-04-24 10:49:25.582]: Error: [wayland] Environment variable WAYLAND_DISPLAY has not been defined
[2026-04-24 10:49:25.782]: Info: Encoder [software] failed
[2026-04-24 10:49:25.782]: Fatal: Unable to find display or encoder during startup.
[2026-04-24 10:49:25.782]: Fatal: Please ensure your manually chosen GPU and monitor are connected and powered on.
[2026-04-24 10:49:25.782]: Error: Video failed to find working encoder
[2026-04-24 10:49:25.783]: Info: Starting system tray
[2026-04-24 10:49:25.784]: Error: Failed to create client: Daemon not running
[2026-04-24 10:49:25.785]: Info: Configuration UI available at [https://localhost:47990/]
[2026-04-24 10:49:25.817]: Info: System tray created
[2026-04-24 10:49:25.817]: Info: Starting main loop
Formula Name
sunshine-beta
Homebrew Version
Homebrew 5.1.7
Operating System
Bazzite 43.20260420
Describe the Issue
The installation works correctly, but the created service unit is missing parameters.
The service unit created by Homebrew doesn't match the one that exists in dev.lizardbyte.app.Sunshine.service.in on the main repository.
When setting up the service using
brew services start sunshine-betait enables a service unit that is missing theAfter=graphical-session.target xdg-desktop-autostart.target xdg-desktop-portal.serviceline, resulting in Sunshine attempting to initialize before Wayland is ready.Depending on your setup, this may lead to errors due to
WAYLAND_DISPLAYnot being set.It works correctly after restarting, and it works as expected on boot after overriding the service unit file.
Relevant Terminal Output
Full Installation Log
Installation Command Used
Additional Context
Sunshine logs after first boot: