From 8b3ac7de1a60ba9af1deb26df34fbfac06fe1f1d Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Mon, 7 Sep 2026 19:56:25 +0200 Subject: [PATCH] 1password: start at a fixed device scale factor (#342) 1Password reads the display scale itself, the way Electron apps do, so on a scaled monitor it comes up oversized next to every other window. Pin it in the .desktop we install and let the compositor scale it. Rewriting Exec on the way in is how spotify, perplexity and sublime-text already fix up their entries here. Only the stable package: 1password-beta syncs from the AUR, so a patch there would be overwritten. Claude-Session: https://claude.ai/code/session_01JB9phxP56gnP7qSidkkUJE Co-authored-by: Claude Opus 5 (1M context) --- pkgbuilds/1password/PKGBUILD | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pkgbuilds/1password/PKGBUILD b/pkgbuilds/1password/PKGBUILD index bfb2dae..2479352 100644 --- a/pkgbuilds/1password/PKGBUILD +++ b/pkgbuilds/1password/PKGBUILD @@ -1,6 +1,6 @@ pkgname=1password pkgver=8.12.34 -pkgrel=35 +pkgrel=36 conflicts=('1password-beta' '1password-beta-bin') pkgdesc="Password manager and secure wallet" arch=('x86_64' 'aarch64') @@ -51,6 +51,12 @@ package() { # Install desktop file install -Dm0644 resources/1password.desktop -t "${pkgdir}"/usr/share/applications/ + # 1Password reads the display scale itself, the way Electron apps do, and + # comes up oversized next to every other window on a scaled monitor. Pin it + # and let the compositor do the scaling. + sed -i 's|^Exec=.*|Exec=/opt/1Password/1password --force-device-scale-factor=1 %U|' \ + "${pkgdir}/usr/share/applications/1password.desktop" + # Fill in policy kit file with a list of (the first 10) human users of the system. export POLICY_OWNERS POLICY_OWNERS="$(cut -d: -f1,3 /etc/passwd | grep -E ':[0-9]{4}$' | cut -d: -f1 | head -n 10 | sed 's/^/unix-user:/' | tr '\n' ' ')"