Skip to content

fix(portal): set XDG_DATA_DIRS so the Settings portal can find schemas - #258

Merged
mirkobrombin merged 1 commit into
singularityos-lab:masterfrom
perlowja:fix/portal-gsettings-schema-dir
Sep 18, 2026
Merged

mirkobrombin merged 1 commit into
singularityos-lab:masterfrom
perlowja:fix/portal-gsettings-schema-dir

Conversation

@perlowja

@perlowja perlowja commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

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 the
prefixes this unit's ExecStart already searches for the binary are on that
path by default. g_settings_new() on an unfound schema is a fatal error, not
a catchable one, so the service fails rather than degrading.

Sets XDG_DATA_DIRS to the same prefix list ExecStart walks, so the two stay
in sync whichever one wins.

Test plan

  • systemd-analyze verify --user accepts the unit, exit 0, no warnings
    (Debian 13 trixie, systemd 257)
  • Originally found on a non-/usr/share prefix install, where the portal
    aborted 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 not
expect that to differ, but I would rather say so than imply a fresh test.

AI assistance: disclosed

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
perlowja force-pushed the fix/portal-gsettings-schema-dir branch from bca0e94 to 624df76 Compare September 17, 2026 14:46
@mirkobrombin
mirkobrombin merged commit 112b301 into singularityos-lab:master Sep 18, 2026
3 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