Skip to content

fix(service): enable Sunshine by canonical unit name and open admin UI port - #9104

Open
harshithnadig wants to merge 1 commit into
omacom:quattrofrom
harshithnadig:fix/sunshine-service-name-and-port
Open

fix(service): enable Sunshine by canonical unit name and open admin UI port#9104
harshithnadig wants to merge 1 commit into
omacom:quattrofrom
harshithnadig:fix/sunshine-service-name-and-port

Conversation

@harshithnadig

Copy link
Copy Markdown

Problem

In #9099, running omarchy install service sunshine fails on fresh installs with:
Failed to enable unit: Unit sunshine.service does not exist

Cause

  1. The sunshine package installs /usr/lib/systemd/user/app-dev.lizardbyte.app.Sunshine.service. The sunshine.service alias declared in the unit's [Install] section is only created once enabled; enabling by alias before it is enabled fails.
  2. Port 47990 (the Sunshine Web Admin interface) was omitted from TCP_PORTS, preventing pairing over LAN/Tailscale.
  3. enable_hyprland_autostart was creating a redundant launch entry when the systemd unit is already WantedBy=graphical-session.target.

Solution

  • Call systemctl --user daemon-reload and enable app-dev.lizardbyte.app.Sunshine.service.
  • Add 47990 to TCP_PORTS.
  • Remove redundant autostart.lua entry.

Fixes #9099

…I port

'omarchy-install-service-sunshine' previously called
'systemctl --user enable --now sunshine'. Because the 'sunshine' package
ships the unit as 'app-dev.lizardbyte.app.Sunshine.service' with
'Alias=sunshine.service', the alias does not exist on disk until the unit
has been enabled, causing installation to fail 100% of the time on clean systems.

- Enable 'app-dev.lizardbyte.app.Sunshine.service' directly after daemon-reload.
- Add port 47990 (Sunshine Admin Web UI) to TCP_PORTS so pairing is accessible
  over private LAN and Tailscale.
- Remove redundant Hyprland autostart entry since the user unit is already
  WantedBy=graphical-session.target.

Fixes omacom#9099
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

omarchy install service sunshine always fails: enables 'sunshine.service' but package ships 'app-dev.lizardbyte.app.Sunshine.service'

1 participant