Skip to content

fix(linux): use FQDN service name in desktop launcher#4874

Merged
ReenigneArcher merged 1 commit intoLizardByte:masterfrom
htrex:fix/desktop-service-name
Mar 19, 2026
Merged

fix(linux): use FQDN service name in desktop launcher#4874
ReenigneArcher merged 1 commit intoLizardByte:masterfrom
htrex:fix/desktop-service-name

Conversation

@htrex
Copy link
Contributor

@htrex htrex commented Mar 19, 2026

Description

The .desktop launcher uses systemctl start --u sunshine to start the Sunshine service. However, sunshine is only an alias defined via Alias=sunshine.service in the unit file — this alias is only created when the service is enabled (systemctl enable).

If the user has not enabled the service (e.g. they prefer to start it manually from the desktop launcher), the command silently fails because the sunshine.service symlink does not exist.

This PR replaces sunshine with the fully-qualified service name app-@PROJECT_FQDN@ so the launcher works regardless of whether the service has been enabled.

Screenshot

Issues Fixed or Closed

Roadmap Issues

Type of Change

  • feat: New feature (non-breaking change which adds functionality)
  • fix: Bug fix (non-breaking change which fixes an issue)
  • docs: Documentation only changes
  • style: Changes that do not affect the meaning of the code
  • refactor: Code change that neither fixes a bug nor adds a feature
  • perf: Code change that improves performance
  • test: Adding missing tests or correcting existing tests
  • build: Changes that affect the build system or external dependencies
  • ci: Changes to CI configuration files and scripts
  • chore: Other changes that don't modify src or test files
  • revert: Reverts a previous commit
  • BREAKING CHANGE: Introduces a breaking change

Checklist

  • Code follows the style guidelines of this project
  • Code has been self-reviewed
  • Code has been commented in hard-to-understand areas
  • Code docstring/documentation-blocks updated
  • Unit tests added or updated

AI Usage

  • None: No AI tools used
  • Light: AI provided minor assistance
  • Moderate: AI helped with code generation or debugging
  • Heavy: AI generated most or all code changes

@ReenigneArcher
Copy link
Member

Thank you for the PR submission, but I noticed you didn't use our PR template.

Please update the PR to use the correct template. You can find it at https://github.com/LizardByte/.github/blob/master/.github/pull_request_template.md?plain=1

@psyke83
Copy link
Contributor

psyke83 commented Mar 19, 2026

Aside from the template, this looks good. I missed this spot to change the service name.

@htrex
Copy link
Contributor Author

htrex commented Mar 19, 2026

@ReenigneArcher Done — I've updated the PR description with the official template. Thanks for pointing it out!

The .desktop file runs `systemctl start --u sunshine`, which relies on
the `sunshine.service` alias. This alias only exists after the user runs
`systemctl --user enable`, but the desktop launcher is intended to work
without prior enable.

Since commit daa99db renamed the service to `app-@PROJECT_FQDN@`, the
desktop launcher should use the full service name directly so it works
regardless of whether the service has been enabled.
@ReenigneArcher ReenigneArcher force-pushed the fix/desktop-service-name branch from 621b523 to c0faab9 Compare March 19, 2026 21:57
@codecov
Copy link

codecov bot commented Mar 19, 2026

Bundle Report

Bundle size has no change ✅

@sonarqubecloud
Copy link

@codecov
Copy link

codecov bot commented Mar 19, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 17.92%. Comparing base (8de642f) to head (c0faab9).
⚠️ Report is 1 commits behind head on master.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4874      +/-   ##
==========================================
+ Coverage   17.91%   17.92%   +0.01%     
==========================================
  Files         106      106              
  Lines       21980    21980              
  Branches     9812     9812              
==========================================
+ Hits         3937     3940       +3     
- Misses      15825    16000     +175     
+ Partials     2218     2040     -178     
Flag Coverage Δ
Archlinux 12.31% <ø> (ø)
FreeBSD-14.3-aarch64 ?
FreeBSD-14.3-amd64 14.14% <ø> (ø)
Homebrew-ubuntu-22.04 14.67% <ø> (ø)
Linux-AppImage 12.81% <ø> (ø)
Windows-AMD64 14.98% <ø> (ø)
Windows-ARM64 13.39% <ø> (+0.01%) ⬆️
macOS-arm64 18.60% <ø> (ø)
macOS-x86_64 17.08% <ø> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.
see 41 files with indirect coverage changes

@ReenigneArcher ReenigneArcher merged commit 4bd461c into LizardByte:master Mar 19, 2026
73 checks passed
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.

3 participants