Fix Electron/Chromium double-scaling via balanced XSETTINGS and unsetting GDK_SCALE

This commit is contained in:
Luxferre committed 2026-11-26 17:31:17 +02:00
1 parent cf1544eb0c
commit d0ef9c66ef
11 files changed
+205 -39

No files matched your search

+6
View File
@@ -424,6 +424,12 @@ if [ -n "${_wd:-}" ] && [ -d "$_wd" ]; then
cd "$_wd" || true
fi
: "${XDG_CONFIG_HOME:=$HOME/.config}"
if [ -r "$XDG_CONFIG_HOME/anode/scale.env" ]; then
. "$XDG_CONFIG_HOME/anode/scale.env"
fi
unset GDK_SCALE GDK_DPI_SCALE || true
if [ "${_tm:-0}" = "1" ]; then
if command -v setsid >/dev/null 2>&1; then
exec setsid st -e /bin/sh -c "exec $CMD" </dev/null >/dev/null 2>&1 &