Jump to content

1Password — Search and open 1Password items


Recommended Posts

Posted (edited)

That's weird, but it won’t be caused by the Workflow because it sends the command along to be opened in the terminal but doesn‘t open it itself.

 

Quit the Terminal, then open Alfred, type “terminal” and ↩ to open it. Does a window show?

 

Also, what shell do you use?

 

Edited by vitor
Link to comment

[11:05:42.037] Logging Started...
[11:05:56.214] 1Password[Script Filter] Queuing argument '(null)'
[11:05:56.295] 1Password[Script Filter] Script with argv '(null)' finished
[11:05:56.297] 1Password[Script Filter] { "items": [{
  "title": "Sign in and update items",
  "subtitle": "Your terminal will open with instructions",
  "arg": "update_items"
}] }
[11:05:57.923] 1Password[Script Filter] Processing complete
[11:05:57.925] 1Password[Script Filter] Passing output 'update_items' to Conditional
[11:05:57.926] 1Password[Conditional] Processing complete
[11:05:57.927] 1Password[Conditional] Passing output 'update_items' to Run Script
[11:05:58.001] 1Password[Run Script] Processing complete
[11:05:58.003] 1Password[Run Script] Passing output '/var/folders/gn/x55ppl_j2p14whv6t0hgcq7h0000gp/T/tmp.VxgqwcBv' to Terminal Command
[11:05:58.997] 1Password[Terminal Command] Processing complete
[11:05:59.002] 1Password[Terminal Command] Passing output '/var/folders/gn/x55ppl_j2p14whv6t0hgcq7h0000gp/T/tmp.VxgqwcBv' to Run Script

Link to comment
21 minutes ago, convivio said:

/var/folders/gn/x55ppl_j2p14whv6t0hgcq7h0000gp/T/tmp.VxgqwcBv

 

By running that in your Terminal, your setup should start and you’ll bypass the problem.

 

For a more permanent fix, we need to narrow it down. Try this Workflow. With the Terminal closed, open Alfred and run testterminal. What happens?

Link to comment
8 minutes ago, convivio said:

I'm guessing that I should see "hello"... but I don't.

 

You should hear “hello” and also see the command in the Terminal. The next thing to try is resetting your Terminal settings. I that doesn‘t work, there’s something about your macOS setup which isn’t working correctly, and the question is what.

Link to comment

Trashed com.apple.Terminal.plist, hard reset the shell, still nothing in the terminal window when I run testterminal or "Sign in and update items"... 😞

 

FYI - This is a pretty vanilla Macbook pro with commercial software running. It's not a tricked out developer machine with lots of optimizations/customizations, etc.

Link to comment

I believe you! But because this would affect every Workflow and you’re the only reported case, there has to be something on your machine which is making the difference. Our goals is to figure out what.

 

Just had a thought. Go into System Preferences → Security & Privacy → Privacy. Scroll down to Automation. Check if Terminal.app is ticked under Alfred.

Link to comment

Must ask, when using the 1p workflow should the 1Password app be opened?

In my system whatever I do, the workflow always end up in a condition where 1Password have to be opened. My thought was the the CLI would facilitate communication with 1Password without having it open.

Here is my diagnostic output

### Workflow version
2022.15

### Alfred version
5.0

### macOS version
12.5

### Architecture
arm64

### Preferences
Default

### 1Password version
8.9.0-1.BETA

### op version
In Workflow: 2.2.0
In /usr/local: 2.6.0

### Biometric unlock
NOT enabled

### Custom terminal feature
NOT enabled

### Launchd job
Loaded: -    0    com.alfredapp.1password
Installed

### Workflow version
2022.15

### Alfred version
5.0

### macOS version
12.5

### Architecture
arm64

### Preferences
Default

### 1Password version
8.9.0-1.BETA

### op version
In Workflow: 2.2.0
In /usr/local: 2.6.0

### Biometric unlock
NOT enabled

### Custom terminal feature
NOT enabled

### Launchd job
Loaded: -    0    com.alfredapp.1password
Installed
 

Link to comment

I was having a similar issue, running the 1p Add Account command with nothing happening. Turns out I had set my Alfred -> Preference -> Terminal to custom, and had botched the Applescript. Once I set it to Terminal, everything worked. Hope this helps someone.

Link to comment
On 7/21/2022 at 7:21 PM, vitor said:

If you feel so inclined, posting the solution here when they get you sorted should be helpful to others as well.

?Hi all. A helpful person on the 1password forum solved the issue for me:

I had this exact same issue. Ended up being because the .config directory in my home folder was owned by root rather than me.

Confirm by running ls -la ~ | grep .config

Mine was:
drwxr-xr-x 4 root staff 128 Jul 27 22:54 .config

This means that directory is owned by root and grouped to staff

To resolve:
sudo chown username ~/.config where "username" is your actual username. You can find that by running the command whoami

Link to comment

Thank you for the details, @drpbier. For anyone coming later and needing the same result, you can do it with this line:

 

[[ "$(stat -f '%u' ~/.config)" -eq 0 ]] && sudo chown "$(whoami)" ~/.config

 

You can copy it as is and execute in the Terminal. It will correct the ownership of the folder to your username if the current owner is root.

Link to comment

When I type in "1p" into Alfred along with the site that I want to go to, it launches the site, but does not fill out the user or password.

 

### Workflow version
2022.15

### Alfred version
5.0.1

### macOS version
12.5

### Architecture
i386

### Preferences
Dict {
}

### 1Password version
8.8.0

### op version
In Workflow: 2.2.0
In /usr/local: 2.6.0

### Biometric unlock
Enabled

### Custom terminal feature
NOT enabled

### Launchd job
Loaded: -    0    com.alfredapp.1password
Installed
 

Link to comment

maybe i'm missing something, but is the Workflow supposed to catch up with the items from 1Password itself? i keep having to go through :1p Extras  to force the items to be updated. whether it's a new item, removing an old one, adding a URL, etc. thanks.

 

the diagnosis:

 

### Workflow version
2022.15

### Alfred version
5.0.1

### macOS version
13.0

### Architecture
i386

### Preferences
Default

### 1Password version
8.9.0-1.BETA

### op version
In Workflow: 2.2.0
In /usr/local: 2.2.0

### Biometric unlock
Enabled

### Custom terminal feature
Enabled

### Launchd job
Loaded: -    0    com.alfredapp.1password
Installed
 

edit: i've checked the GitHub issues. saw some about not updating the items, but doesn't seem related to what i'm asking. maybe the current it works is actually expected. would be nice to have a confirmation.

Edited by godbout
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...