Common Launchers
Desktop
The most basic configuration streams your entire desktop:Steam Big Picture
Steam is launched as a detached command because Steam’s launcher process self-updates and the original process terminates.- Windows
- Linux
- macOS
On Linux and FreeBSD, use
setsid to properly detach the Steam process from Sunshine’s control.Steam Games
Steam games can be launched using URI schemes or direct binary execution.Using Steam URI (Recommended)
This method is the most consistent across platforms and games:- Windows
- Linux
- macOS
Using Game Binary with Working Directory
- Windows
- Linux
Using Game Binary with Full Path
- Windows
- Linux
Epic Games Store
Using Epic URI (Recommended)
The URI method provides the most consistent behavior:- Windows
Using Game Binary
- With Working Directory
- With Full Path
Prep Commands
Prep commands execute before starting an application and can clean up when the application closes. Common uses include changing resolution, refresh rate, or launching supporting processes.Resolution and Refresh Rate Changes
Dynamically adjust display settings based on Moonlight client capabilities using environment variables:${SUNSHINE_CLIENT_WIDTH}- Client’s requested width${SUNSHINE_CLIENT_HEIGHT}- Client’s requested height${SUNSHINE_CLIENT_FPS}- Client’s requested frame rate
Linux (X11)
Linux (Wayland/wlroots)
For wlroots-based compositors (Hyprland, Sway, etc.):Linux (KDE Plasma)
Works on both Wayland and X11:Display names differ between X11 and Wayland. A monitor might be
HDMI-A-0 on X11 but HDMI-A-1 on Wayland.Linux (GNOME on Wayland)
Requires displayconfig-mutter:HDR support requires GNOME 48+. Check support with
displayconfig-mutter list. Remove the --hdr flag if your display doesn’t support it.Linux (NVIDIA GPUs)
For NVIDIA proprietary drivers:macOS
Requires displayplacer:Replace
<screenId> with your display’s ID. Run displayplacer list to find it.Windows
Sunshine has built-in support for resolution changes on Windows. For third-party tools, you can use QRes:QRes must be downloaded separately.
Platform-Specific Considerations
Linux (Flatpak)
Example:Windows (Elevated Commands)
If Sunshine is installed as a service (default), you can launch applications with administrative privileges without UAC prompts:The
elevated option can be set independently for the main command and each prep command.
