Skip to content

Deck: resolve the Steam user's home on desktop Linux, - #2

Merged
Alexsander720 merged 1 commit into
Alexsander720:mainfrom
Guacam-Ole:fix/desktop-linux-steam-home
Nov 30, 2026
Merged

Alexsander720 merged 1 commit into
Alexsander720:mainfrom
Guacam-Ole:fix/desktop-linux-steam-home

Conversation

@Guacam-Ole

Copy link
Copy Markdown
Contributor

deck_home() fell back to $HOME when /home/deck is absent, and main.py hard-coded /home/deck/homebrew for the Game Theme Music cache. On a desktop Linux install (Steam .deb, user is not "deck") the theme-music lookup could never match, and a backend started as root (HOME=/root) would find no library, prefix or save at all.

deck_home() now tries, in order: /home/deck, the sudo invoker, the single /home/* account that owns a Steam installation, then $HOME. The theme music path is derived from it. Behaviour on a Steam Deck is unchanged.

TL;DR: This plugin currently does not work in Linux Big Picture mode. This fixes that without creating problems on SteamDeck

…deck

deck_home() fell back to $HOME when /home/deck is absent, and main.py
hard-coded /home/deck/homebrew for the Game Theme Music cache. On a
desktop Linux install (Steam .deb, user is not "deck") the theme-music
lookup could never match, and a backend started as root (HOME=/root)
would find no library, prefix or save at all.

deck_home() now tries, in order: /home/deck, the sudo invoker, the single
/home/* account that owns a Steam installation, then $HOME. The theme
music path is derived from it. Behaviour on a Steam Deck is unchanged.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@Alexsander720

Copy link
Copy Markdown
Owner

Thanks, this fixes a real blind spot since I only ever tested on Steam Deck and Windows. Checked the Windows fallback too and it stays untouched. Merging as a regular merge commit so PR #4 doesn't hit conflicts on the shared commit. I might add a tiny follow-up later to check DECKY_USER_HOME and guard SUDO_USER against stray path separators.

@Alexsander720
Alexsander720 merged commit f5d3946 into Alexsander720:main Nov 30, 2026
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