fix(service): enable Sunshine by canonical unit name and open admin UI port - #9104
Open
harshithnadig wants to merge 1 commit into
Open
fix(service): enable Sunshine by canonical unit name and open admin UI port#9104harshithnadig wants to merge 1 commit into
harshithnadig wants to merge 1 commit into
Conversation
…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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
In #9099, running
omarchy install service sunshinefails on fresh installs with:Failed to enable unit: Unit sunshine.service does not existCause
sunshinepackage installs/usr/lib/systemd/user/app-dev.lizardbyte.app.Sunshine.service. Thesunshine.servicealias declared in the unit's[Install]section is only created once enabled; enabling by alias before it is enabled fails.TCP_PORTS, preventing pairing over LAN/Tailscale.enable_hyprland_autostartwas creating a redundant launch entry when the systemd unit is alreadyWantedBy=graphical-session.target.Solution
systemctl --user daemon-reloadand enableapp-dev.lizardbyte.app.Sunshine.service.47990toTCP_PORTS.autostart.luaentry.Fixes #9099