diff --git a/bin/omarchy-launch-1password b/bin/omarchy-launch-1password index d50da0b2..61889fd9 100755 --- a/bin/omarchy-launch-1password +++ b/bin/omarchy-launch-1password @@ -4,8 +4,11 @@ set -e +# 1Password reads the display scale itself, the way Electron apps do, and comes +# up oversized next to every other window on a scaled monitor. The packaged +# .desktop pins it too; this covers the hotkey, which runs the binary directly. if omarchy-cmd-present 1password; then - exec setsid uwsm-app -- 1password + exec setsid uwsm-app -- 1password --force-device-scale-factor=1 else exec omarchy-launch-floating-terminal-with-presentation omarchy-install-service-1password fi diff --git a/test/shell.d/launch-1password-test.sh b/test/shell.d/launch-1password-test.sh index c9790d2f..a1b64624 100755 --- a/test/shell.d/launch-1password-test.sh +++ b/test/shell.d/launch-1password-test.sh @@ -31,8 +31,9 @@ chmod +x "$mock_bin"/* launch_log="$test_tmp/launch-log" PATH="$mock_bin:$PATH" OMARCHY_TEST_INSTALLED=true OMARCHY_TEST_LOG="$launch_log" \ bash "$ROOT/bin/omarchy-launch-1password" -grep -Fxq 'launch:-- 1password' "$launch_log" || fail "1Password launcher starts the installed app" -pass "1Password launcher starts the installed app" +grep -Fxq 'launch:-- 1password --force-device-scale-factor=1' "$launch_log" || + fail "1Password launcher starts the installed app at a fixed scale factor" +pass "1Password launcher starts the installed app at a fixed scale factor" PATH="$mock_bin:$PATH" OMARCHY_TEST_INSTALLED=false OMARCHY_TEST_LOG="$launch_log" \ bash "$ROOT/bin/omarchy-launch-1password"