Repository navigation
Conversation
|
Verified: At Source comparison: Documentation correction: The lock-screen manual still says the shortcut “locks 1Password on the way out” whenever it is running. Suggested change: remove that unconditional promise and explain that Omarchy no longer explicitly locks 1Password. Native behavior remains unverified: The enabled-preference case depends on 1Password detecting this desktop's lock. The source requests Quickshell's Wayland session lock, and the linked support article documents the preference without establishing that integration. These checks therefore do not establish the PR's claim that 1Password still locks when the preference is enabled, nor demonstrate that it fails. Review informationTest scope: Source inspection, per-file shell syntax checks and the focused shell test. The new assertion passed on the PR and rejected the original lock script. No native 1Password, compositor, suspend or credential-integration behavior was tested. Community review: Independent automated community review, unaffiliated with the Omarchy team, intended to help prepare PRs for their review. Automated AI review: Astra Medium initial inspection and synthesis, independent Opus 5.5 High and GPT 6 Sol Xhigh technical reviews, followed by verification against source and targeted evidence. |
|
Before this lands I think we need proof that 1Password actually notices an Omarchy lock. As far as I can tell, nothing on quattro tells the session it's locked in a way 1Password could pick up. Could you test on Omarchy with the preference enabled? Lock with If it doesn't lock, the options I see are:
|
|
Thanks @jandrusk for raising this. You were right: this was a real bug in the initial patch. I tested with Lock when computer locks enabled and reproduced exactly what you described—the vault stayed unlocked after locking Omarchy. The fix is now in I verified both cases with the bridge active: enabled locks the vault, disabled leaves it unlocked. The native probe also produced For clarity about the test scope: the live test forwarded the running shell's Thanks again for catching this before it landed—it exposed a security regression that the original source-level tests did not cover. |
[Critical impact] The PR appears safe to merge; the previous cleanup issue is fixed and no new actionable issues were found. SummaryThe PR sends compositor-confirmed lock changes through
|
|
Thanks for testing it with the preference on, and for the bridge. Two problems with owning
Suggestions: either work out one owner of the interface with #13359 (one service that handles if ! busctl --user status org.freedesktop.ScreenSaver >/dev/null 2>&1; then
timeout --kill-after=1s 3s 1password --lock >/dev/null 2>&1 || true
fi(Better still if the check confirms the owner is this bridge and not some other process.) |
|
Thanks @jandrusk — I went with your shared-owner option. The fix is pushed in
All 20 lock-bridge checks pass, including real name contention/recovery, inhibitor calls on both paths alongside lock notifications, shared-service restart/reannouncement, and the production QML component's offscreen lifecycle. The inhibitor suite, focused lock/idle/sleep checks, and CLI suite also pass. The next step is coordinating the shared implementation and merge order with #13359, which is still open. |
…cations Browsers and players ask org.freedesktop.ScreenSaver to inhibit idle, and nothing has owned that name since hypridle was replaced (omacom#6475). A user daemon now serves Inhibit/UnInhibit for the idle service, and relays the lock plugin's compositor-confirmed lock state as ActiveChanged so desktop apps can react to the session locking.
1Password now hears the session lock over org.freedesktop.ScreenSaver and applies the user's preference, so stop forcing `1password --lock`.
64ded25 to
dea00ed
Compare
|
I rebased onto current
Nothing changed in behavior since The open question is merge order with #13359, since commit 1 contains its idle-inhibit daemon. @HerrStolzier, I'd suggest #13359 lands first and this PR then shrinks to the lock bridge plus the 1Password removal. If you'd rather keep the public |
The unit's stop cleanup deleted the shared state file unconditionally, so a start that lost org.freedesktop.ScreenSaver to another daemon erased that daemon's active inhibitors on every retry. Only remove the file when its serving pid is gone.
|
Want your agent to iterate on Greptile's feedback? Try greploops. |
|
Closing in favor of #15183, which fixes the same problem (#15180) with a much smaller change. It keeps The remaining value here was the lock-state forwarding ( Thanks @jandrusk for the careful reviews. |
Summary
Let 1Password honor its own Lock when computer locks preference instead of forcing
1password --lock. Omarchy publishes its compositor-confirmed lock state asActiveChangedonorg.freedesktop.ScreenSaver, the native signal 1Password listens for, through the same D-Bus service that handles idle inhibitors.The branch is rebased onto current
quattroas two commits:1password --lockcall and the manual's claim that every Omarchy lock locks 1Password. It's only safe on top of commit 1.Merge order
Commit 1 includes the shared-service implementation from #13359, which is still open, so the two PRs overlap. The simplest order is #13359 first, then this PR, which would then shrink to the lock bridge plus the 1Password removal. I'm also happy to move the
GetActive/ActiveChangedpart into #13359 so a single PR owns the public service.Why a desktop integration is needed
Removing the CLI call on its own was unsafe. With 1Password's preference enabled, the vault stayed unlocked behind the lock screen, because a Wayland session lock alone doesn't notify 1Password.
In native testing, 1Password locked on
ActiveChangedfrom an ownedorg.freedesktop.ScreenSaverservice and loggedAutomatic(ScreenSaverActivated). An unowned signal and a temporary logindLockedHintchange did not trigger a lock.Architecture
SessionLockBridge.qmlforwardsWlSessionLock.secure, not lock requests or preview state, to a Python child as newline-delimited states. After a child restart it republishes the current state, and it backs off if the child keeps failing.shell/plugins/lock/session-lock-bridge.pyowns onlyorg.omarchy.SessionLock. It exposesGetActiveand emitsActiveChangedthere. Until the first compositor state arrives it reportsNotReadyinstead of assuming the session is unlocked.omarchy-idle-inhibit.serviceis the only owner oforg.freedesktop.ScreenSaver. It implementsInhibit,UnInhibitandGetActive, and emitsActiveChangedon both/org/freedesktop/ScreenSaverand/ScreenSaver. Active inhibitors don't suppress notifications for a real compositor lock.Restart=on-failureretries.python-gobjectdependency.A migration enables the user unit on existing installs, and first-run enables it on new ones. The contract and recovery behavior are documented in
docs/omarchy-shell.md.Limitations
Retries can't deliver lock notifications while an unrelated process holds
org.freedesktop.ScreenSaver, and there is no forced1password --lockfallback.Verification
Automated, on the rebased head
bash test/shell.d/session-lock-bridge-test.sh: all 23 checks pass. They cover:SessionLockBridge.qmlrunning in real offscreen Quickshell (ready handshake, state changes, forced child failure, restart, resync and cleanup) on an isolated bus with no desktop-service activation and no display accessbash test/shell.d/idle-inhibit-test.shpasses. It covers inhibitor lifetime, disconnect cleanup, both object paths, leavingorg.freedesktop.PowerManagementunowned, and stop cleanup that clears a dead daemon's state without erasing a live owner's.idle,system-lockandconfigshell tests,./test/cliandgit diff --checkall pass.Native 1Password evidence
On Omarchy 4.0.4, Hyprland 0.56.2, Quickshell 0.3.1 and 1Password 8.12.40, publishing lock state on the owned ScreenSaver name locked 1Password with its preference enabled and left it unlocked with the preference disabled. That test used a temporary observer to forward the running shell's secure state; it wasn't a full dev-linked shell run.