[PR #310] [MERGED] fix: resolve gamescope path dynamically for Fedora compatibility #294

Closed
opened 2026-10-15 12:50:37 +00:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/games-on-whales/gow/pull/310
Author: @JBailes
Created: 4/14/2026
Status: ✅ Merged
Merged: 4/14/2026
Merged by: @JBailes

Base: fedora-variant-images ← Head: fix/fedora-gamescope-path


📝 Commits (3)

  • 9cc27c0 fix: resolve gamescope path dynamically for Fedora compatibility
  • 088f76b prismlauncher: install from official GitHub portable release
  • b0a010d fix: use contains/endswith in prismlauncher jq filter

📊 Changes

3 files changed (+27 additions, -13 deletions)

View changed files

📝 apps/prismlauncher/build/Dockerfile (+22 -11)
📝 images/base-app/build/scripts/init-gamescope.sh (+4 -1)
📝 images/base-app/build/scripts/launch-comp.sh (+1 -1)

📄 Description

Summary

  • init-gamescope.sh and launch-comp.sh both hardcode /usr/games/gamescope, which is Ubuntu-specific. Fedora installs gamescope to /usr/bin/gamescope, causing the wolf:fedora container to die immediately at boot with chown: cannot access '/usr/games/gamescope': No such file or directory.
  • Replace the hardcoded path with `command -v gamescope` so the binary is located correctly on both distros.
  • Guard the `chown` in init-gamescope.sh so it skips gracefully if gamescope isn't present in the image, rather than failing hard.

Reported by multiple users on the wolf:fedora image — log excerpt:
```
chown: cannot access '/usr/games/gamescope': No such file or directory
container died ... (image=ghcr.io/games-on-whales/wolf:fedora)
```

Test plan

  • Build base-app Fedora image and confirm container starts without the chown error
  • Verify RUN_GAMESCOPE=true still launches gamescope correctly on Fedora
  • Verify Ubuntu image behaviour is unchanged (command -v gamescope resolves to /usr/games/gamescope on Ubuntu)

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/games-on-whales/gow/pull/310 **Author:** [@JBailes](https://github.com/JBailes) **Created:** 4/14/2026 **Status:** ✅ Merged **Merged:** 4/14/2026 **Merged by:** [@JBailes](https://github.com/JBailes) **Base:** `fedora-variant-images` ← **Head:** `fix/fedora-gamescope-path` --- ### 📝 Commits (3) - [`9cc27c0`](https://github.com/games-on-whales/gow/commit/9cc27c0066264296ece7b7e663cce9153c67a125) fix: resolve gamescope path dynamically for Fedora compatibility - [`088f76b`](https://github.com/games-on-whales/gow/commit/088f76bc797cfae83c762e67c243d4dc356d25af) prismlauncher: install from official GitHub portable release - [`b0a010d`](https://github.com/games-on-whales/gow/commit/b0a010d837ffb7b86c7e9229be8d8af53871794e) fix: use contains/endswith in prismlauncher jq filter ### 📊 Changes **3 files changed** (+27 additions, -13 deletions) <details> <summary>View changed files</summary> 📝 `apps/prismlauncher/build/Dockerfile` (+22 -11) 📝 `images/base-app/build/scripts/init-gamescope.sh` (+4 -1) 📝 `images/base-app/build/scripts/launch-comp.sh` (+1 -1) </details> ### 📄 Description ## Summary - `init-gamescope.sh` and `launch-comp.sh` both hardcode `/usr/games/gamescope`, which is Ubuntu-specific. Fedora installs gamescope to `/usr/bin/gamescope`, causing the `wolf:fedora` container to die immediately at boot with `chown: cannot access '/usr/games/gamescope': No such file or directory`. - Replace the hardcoded path with \`command -v gamescope\` so the binary is located correctly on both distros. - Guard the \`chown\` in `init-gamescope.sh` so it skips gracefully if gamescope isn't present in the image, rather than failing hard. Reported by multiple users on the `wolf:fedora` image — log excerpt: \`\`\` chown: cannot access '/usr/games/gamescope': No such file or directory container died ... (image=ghcr.io/games-on-whales/wolf:fedora) \`\`\` ## Test plan - [ ] Build `base-app` Fedora image and confirm container starts without the chown error - [ ] Verify `RUN_GAMESCOPE=true` still launches gamescope correctly on Fedora - [ ] Verify Ubuntu image behaviour is unchanged (`command -v gamescope` resolves to `/usr/games/gamescope` on Ubuntu) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-15 12:50:37 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
games-on-whales/gow#294
No description provided.