fix(portal): set XDG_DATA_DIRS so the Settings portal can find schemas - #258
Merged
mirkobrombin merged 1 commit intoSep 18, 2026
Conversation
GSettings searches only XDG_DATA_DIRS for schemas, and none of the prefixes this unit's ExecStart searches for the binary are on it by default, so the Settings portal aborts on construction with "No such schema". Mirrors ExecStart's prefix list. Assisted-by: Claude Code:claude-opus-5 AI-Scope: Rebased onto master and reduced the explanatory comment to one line.
perlowja
force-pushed
the
fix/portal-gsettings-schema-dir
branch
from
September 17, 2026 14:46
bca0e94 to
624df76
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The Settings portal aborts on construction with "No such schema". GSettings
searches only
XDG_DATA_DIRS(plus/usr/share) for schemas, and none of theprefixes this unit's
ExecStartalready searches for the binary are on thatpath by default.
g_settings_new()on an unfound schema is a fatal error, nota catchable one, so the service fails rather than degrading.
Sets
XDG_DATA_DIRSto the same prefix listExecStartwalks, so the two stayin sync whichever one wins.
Test plan
systemd-analyze verify --useraccepts the unit, exit 0, no warnings(Debian 13 trixie, systemd 257)
/usr/shareprefix install, where the portalaborted on start and came up with this change
Not verified: I have not re-run the live portal start on a clean install since
rebasing onto current
master. The change is unit-file only, so I do notexpect that to differ, but I would rather say so than imply a fresh test.
AI assistance: disclosed