Skip to content

fix(linux): stop AppImage install from modifying the mounted binary - #6185

Draft
ReenigneArcher wants to merge 2 commits into
masterfrom
fix/appimage-install-read-only
Draft

ReenigneArcher wants to merge 2 commits into
masterfrom
fix/appimage-install-read-only

Conversation

@ReenigneArcher

@ReenigneArcher ReenigneArcher commented Nov 25, 2026 •

Copy link
Copy Markdown
Member

Description

AppRun --install no longer tries to set Linux file capabilities on the binary inside the read-only AppImage mount. The AppImage does not support KMS capture. The input-rule, kernel-module, udev, and service setup commands and their error handling are unchanged.

Screenshot

Issues Fixed or Closed

Roadmap Issues

Testing

  • bash -n passed.
  • Exercised the AppRun --install && AppRun entry point in a temporary AppDir with host commands stubbed. The original script failed at setcap with a simulated read-only mount error. The revised script installed the two input files, rewrote the service path, and reached launch without calling setcap.
  • Repeated the install-and-launch simulation with modprobe returning nonzero. The script still completed service setup and reached launch, preserving the existing behavior for that step.
  • A mounted AppImage install on Void or another Linux host was not run locally.

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 (white-space, formatting, missing semicolons, etc.)
  • 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 (can be combined with any type above)

Checklist

  • Code follows the style guidelines of this project
  • Code has been self-reviewed
  • Code has been commented, particularly in hard-to-understand areas
  • Code docstring/documentation-blocks for new or existing methods/components have been added or updated
  • Tests have been added or updated for new or modified functionality, including regression tests for bug fixes

AI Usage

See our AI usage policy.

  • AI tools were used while preparing this PR

Prepared with OpenAI's Dot (model and thinking level unavailable).

@codecov

codecov Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

Bundle Report

Bundle size has no change ✅

@codecov

codecov Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 51.89%. Comparing base (b7a0b68) to head (47720ab).
✅ All tests successful. No failed tests found.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #6185      +/-   ##
==========================================
- Coverage   51.93%   51.89%   -0.04%     
==========================================
  Files         150      149       -1     
  Lines       32863    32856       -7     
  Branches    13860    13855       -5     
==========================================
- Hits        17067    17052      -15     
- Misses      12259    13519    +1260     
+ Partials     3537     2285    -1252     
Flag Coverage Δ
Alpine-aarch64 35.68% <ø> (+<0.01%) ⬆️
Alpine-x86_64 35.79% <ø> (ø)
Archlinux 36.53% <ø> (+0.01%) ⬆️
FreeBSD-amd64 36.21% <ø> (ø)
Homebrew-macos-15 50.00% <ø> (+<0.01%) ⬆️
Homebrew-macos-26 50.41% <ø> (ø)
Homebrew-ubuntu-24.04 38.67% <ø> (+<0.01%) ⬆️
Linux-AppImage-aarch64 ?
PowerShell 100.00% <ø> (ø)
Web-UI 58.14% <ø> (ø)
Windows-AMD64 42.53% <ø> (ø)
Windows-ARM64 36.11% <ø> (+<0.01%) ⬆️
macOS-arm64 42.53% <ø> (ø)
macOS-x86_64 41.45% <ø> (ø)

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


Continue to review full report in Codecov by Harness.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b7a0b68...47720ab. Read the comment docs.

@github-actions

github-actions Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Last Updated 2026-11-25 18:41:00 UTC
Source Run CI Run #6978
Commit 47720ab82f6a62e66e777093150447fc9358d7ac

Screenshot Comparison

PR #6185 screenshots vs screenshots baseline.

Matrix: AppImage-aarch64

Image Baseline PR
sunshine_tray_initial.png
sunshine_tray_menu.png
sunshine_tray_pairing_request.png
sunshine_tray_paused.png
sunshine_tray_stopped.png
sunshine_tray_streaming.png
sunshine_tray_tooltip.png

Matrix: Windows-AMD64

Image Baseline PR
sunshine_tray_initial.png
sunshine_tray_menu.png
sunshine_tray_pairing_request.png
sunshine_tray_paused.png
sunshine_tray_stopped.png
sunshine_tray_streaming.png
sunshine_tray_tooltip.png

Matrix: Windows-ARM64

Image Baseline PR
sunshine_tray_initial.png
sunshine_tray_menu.png
sunshine_tray_pairing_request.png
sunshine_tray_paused.png
sunshine_tray_stopped.png
sunshine_tray_streaming.png
sunshine_tray_tooltip.png

Matrix: macOS-arm64

Image Baseline PR
sunshine_tray_initial.png
sunshine_tray_menu.png
sunshine_tray_pairing_request.png
sunshine_tray_paused.png
sunshine_tray_stopped.png
sunshine_tray_streaming.png
sunshine_tray_tooltip.png

Matrix: macOS-x86_64

Image Baseline PR
sunshine_tray_initial.png
sunshine_tray_menu.png
sunshine_tray_pairing_request.png
sunshine_tray_paused.png
sunshine_tray_stopped.png
sunshine_tray_streaming.png
sunshine_tray_tooltip.png

@sonarqubecloud

Copy link
Copy Markdown

This branch has not been deployed

No deployments
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.

1 participant