Skip to content

[BUGFIX] Gracefully handle read-only config files#1694

Merged
microtechno9000 merged 3 commits intoautomatic-ripping-machine:mainfrom
xieve:fix-read-only
Mar 12, 2026
Merged

[BUGFIX] Gracefully handle read-only config files#1694
microtechno9000 merged 3 commits intoautomatic-ripping-machine:mainfrom
xieve:fix-read-only

Conversation

@xieve
Copy link
Copy Markdown
Contributor

@xieve xieve commented Feb 6, 2026

Description

Motivation

Under NixOS, config files are almost always read-only, since they are generated by the OS and are supposed to be reproducible and thus immutable. As of right now, ARM refuses to start if arm.yaml is read-only. This PR seeks to address that.

Changes

ARM no longer crashes when any config file is read-only, if that is the case, the respective settings page fields are grayed out and offer a tooltip detailing why.

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

  • Docker
chmod a-w config/*

Successfully started ARM and visited the settings page, observed that it looked as intended.

chmod ug+w config/*

Visited the settings page and confirmed that modifying and saving the files still worked as intended.

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • My changes generate no new warnings
  • I have tested that my fix is effective or that my feature works

@xieve xieve mentioned this pull request Feb 6, 2026
ARM no longer crashes when any config file is read-only, if that is the
case, the respective settings page fields are grayed out and offer a
tooltip detailing why.
Copy link
Copy Markdown
Collaborator

@microtechno9000 microtechno9000 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice addition and check for corner cases, or users operating with nixos

@sonarqubecloud
Copy link
Copy Markdown

@microtechno9000 microtechno9000 merged commit 5b786e2 into automatic-ripping-machine:main Mar 12, 2026
11 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.

2 participants