1Password 8 on Mac does not lock on quit/close

Options
markhunte1
markhunte1
Community Member
edited October 2023 in CLI

I just updated to v8 on my Mac. Is there a way to have 1password 8 auto lock on quit. I am sure it did this in v7.

At the moment this means if I quit 1password and forget to lock it manually, I can turn my back from my Mac. someone within a minute can access 1password.

I have Touch ID, so it locking when quit is not an issue or irritating.


1Password Version: 8
Extension Version: Not Provided
OS Version: MacOs14
Browser: Not Provided

Comments

  • Hello @markhunte1! πŸ‘‹

    Thanks for the question! When you close the main window, 1Password stays open in the background so that you continue to have access to things like Quick Access and integration with 1Password in the browser. Closing the main window does not quit the app.

    1Password will lock according to your auto-lock preferences: How to set 1Password to lock automatically

    You can completely close 1Password by following these steps:

    1. Right-click on the 1Password icon in the menu bar.
    2. Click Quit.

    The next time that you open the app your account password, or fingerprint, will be required.

    Alternatively, and this is what I do, you can lock your Mac itself when you step away from it. I use macOS hot corners and have my Mac lock when I move my mouse to the bottom left corner of the screen: Use hot corners on Mac – Apple Support (AU)

    I hope that helps!

    -Dave

  • markhunte1
    markhunte1
    Community Member
    Options

    Hi Dave, Thank you for the quick reply, Is it really that hard to add it as an option?. The app does not even need to quit, the same as you have it now where when you quit the main app it actually goes into the background. It just needs the option tin the setting to lock when you do this.

  • @markhunte1

    Thanks for the feedback. I can see such as option being useful for some people and, while I can't make any promises, I've filed a feature request with the product team on your behalf.

    Let me know if there's anything else that I can help you with. πŸ™‚

    -Dave

    ref: PB-36213562

  • markhunte1
    markhunte1
    Community Member
    Options

    Thank you Dave.

  • Thanks again for the suggestion. πŸ™‚

    -Dave

  • markhunte1
    markhunte1
    Community Member
    Options

    Hi Dave,
    In the mean time, I am running this AppleScript app with this code.
    property appToMonitor : "1Password" -- Replace with the name of the application

    -- Function to check if the app is running
    on appIsRunning(appName)
    tell application "System Events"
    set appList to (name of processes)
    end tell
    return (appName is in appList)
    end appIsRunning

    -- Function to check if the app is frontmost or active
    on appIsFrontmost(appName)
    tell application "System Events"
    set frontmostApp to name of first application process whose frontmost is true
    end tell
    return (frontmostApp is appName)
    end appIsFrontmost

    -- Function to check if the app has open windows
    on appHasWindows(appName)
    tell application "System Events"
    return (count of windows of process appName) > 0
    end tell
    end appHasWindows

    -- Loop to check every 5 seconds
    repeat
    if appIsRunning(appToMonitor) and not appIsFrontmost(appToMonitor) then
    if not appHasWindows(appToMonitor) then
    do shell script "killall " & appToMonitor
    end if
    end if
    delay 5 -- Wait for 5 seconds before checking again
    end repeat

    But wondered how easy or if possible to hook up the command line API and instead of killAll, we tell 1Password to lock.

    Many thanks.

This discussion has been closed.