mirror of
https://github.com/games-on-whales/unraid-plugin.git
synced 2026-10-15 13:02:00 +00:00
Labels
No labels
enhancement
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
games-on-whales/unraid-plugin#73
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/games-on-whales/unraid-plugin/pull/67
Author: @JBailes
Created: 7/30/2026
Status: ✅ Merged
Merged: 7/30/2026
Merged by: @JBailes
Base:
main← Head:fix/issue-66-app-state-ownership📝 Commits (1)
413ec09Re-own Wolf app state when the run UID changes (fixes #66)📊 Changes
2 files changed (+93 additions, -4 deletions)
View changed files
📝
docs/FAQ.md(+38 -0)📝
scripts/deploy.sh(+55 -4)📄 Description
Problem
#62 set
WOLF_DEFAULT_RUN_UID=99/WOLF_DEFAULT_RUN_GID=100so apps run as Unraid'snobody:users. On existing installs this stops apps from starting — Steam in particular: the container comes up, sway and waybar appear, Big Picture never does (#66).Wolf bind-mounts
<appdata>/profile-data/<profile>/<app>as/home/retroin each app container and runs it asPUID/PGID(sessions/common.cpp:49,66). Nothing re-owns state that is already on disk:create_directorieson the state folder, it never chowns it (sessions/lobbies.cpp:131).10-setup_user.shdoeschown "$PUID:$PGID" "$HOME"— top level only, not recursive.So every app's dotfiles, Steam library and Decky state stayed owned by 1000 while the process became 99, and Steam dies during startup. The reporter's log stops exactly there:
There is a second trap behind it: per Wolf's docs,
WOLF_DEFAULT_RUN_UID/GIDapply only to newly paired clients — clients paired earlier keep the UID saved inconfig.toml. Re-owning the folders alone would break anyone whose savedrun_uidis still 1000.Fix
scripts/deploy.sh:migrate_app_state_ownership—chown -R 99:100over<appdata>/profile-data, recorded incfg/.run-idsso the walk only happens when the UID/GID pair actually changes. These trees hold whole Steam libraries; walking them on every Apply would be slow for no reason.normalize_client_run_ids— rewrites savedrun_uid/run_gidinconfig.tomlso already-paired clients run as the user the state folders are now owned by, instead of a stale 1000 that can no longer write them.WOLF_RUN_UID/WOLF_RUN_GIDbecome a single constant that both compose writers read, so the value handed to Wolf can't drift from the value the migration chowns to.docs/FAQ.mdgets an entry with the log signature, afindcheck, and the fix (click Install; the first re-deploy is slow, later ones are stamped and skip).Existing users recover by re-deploying from Settings > Games on Whales. New installs are unaffected —
profile-datadoesn't exist yet, so the migration is a no-op and no false stamp is written.Verification
bash -nclean.99/100.Out of scope, but noted
<appdata>/steamis still created bysetup_appdata_dirsbut is unused by current Wolf, which usesprofile-data.compatibilitytools.dis still chowned1000:1000for wolf-den. Nothing in this repo mounts it into an app container, but if Proton installs ever land there for the Steam app it will hit the same UID mismatch.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.