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' ' ')"