Skip to content

settings: Read xft-dpi from slick-greeter.conf as a double - #293

Open
ogzhntutucu wants to merge 1 commit into
linuxmint:masterfrom
ogzhntutucu:fix-xft-dpi-conf
Open

ogzhntutucu wants to merge 1 commit into
linuxmint:masterfrom
ogzhntutucu:fix-xft-dpi-conf

Conversation

@ogzhntutucu

@ogzhntutucu ogzhntutucu commented Oct 4, 2026 •

Copy link
Copy Markdown

xft-dpi is a double (d) in the gsettings schema, but apply_conf_settings() handled it as an integer key, so it can't be set from /etc/lightdm/slick-greeter.conf at all:

  • xft-dpi=115 → CRITICAL: g_settings_set_value: key 'xft-dpi' in 'x.dm.slick-greeter' expects type 'd', but a GVariant of type 'i' was given
  • xft-dpi=115.0 → WARNING: Failed to apply xft-dpi from configuration file: Key file contains key "xft-dpi" in group "Greeter" which has a value that cannot be interpreted.

This moves xft-dpi to a list of double keys read with get_double() / set_double(). cursor-theme-size stays an integer key.

Testing (2.2.7 vs. this branch, --test-mode under Xvfb with a test slick-greeter.conf): 115, 115.0, 96 and 144 are now applied; an invalid value still logs the warning above.

Screenshot: xft-dpi=144, left 2.2.7, right this branch.
karsilastirma-144

Tested on Linux Mint 22.3.

🤖 Generated with Claude Code

xft-dpi is a double ('d') in the gsettings schema, but apply_conf_settings()
treated it as an integer key. As a result it could never be set from
/etc/lightdm/slick-greeter.conf:

- "xft-dpi=115" was read with get_integer() and passed to set_int(), which
  fails with "key 'xft-dpi' in 'x.dm.slick-greeter' expects type 'd', but a
  GVariant of type 'i' was given".
- "xft-dpi=115.0" made get_integer() fail with "Key file contains key
  'xft-dpi' in group 'Greeter' which has a value that cannot be interpreted".

Move xft-dpi to a new list of double keys that uses get_double() and
set_double(). Both "115" and "115.0" are now applied.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.

1 participant