Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

linux: Attempt to apply Avalonia scaling factor via environment pre-launch. #656

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

bangfire
Copy link
Contributor

@bangfire bangfire commented Feb 12, 2025

Inspired by NixOS/nixpkgs#348427 as it seems to work well at least on my system (Plasma 6.3).
A little ugly but probably better than nothing. Tried to get a KDE route working via kscreen-doctor but for whatever reason the environment variable refuses to set with the output of that... not sure why as when I copied the exact string that was being executed into the terminal directly it did work. Either way I gave up, probably some unicode weirdness that I don't want to get into.

Needs bc to be installed which I think is widely packaged with most distros but it's hard to know.

Needs GNOME testing.
Edit: GNOME is also useless, the gsettings scaling value doesn't even seem to be used and there doesn't seem to be any other method to query display scaling without parsing the XML manually.

Fixes #643 in theory.

@github-actions github-actions bot added the infra Updates to dependencies label Feb 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
infra Updates to dependencies
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] UI doesn't scale on linux
1 participant