Our community is getting an upgrade on July 2nd! Learn more in the FAQs →
Forum Discussion
greysave
2 years agoNew Contributor
Linux 1password CLI annot connect to the desktop app
The server is running Ubuntu 22.04 and I get the following error:
op vault list
[ERROR] 2024/04/05 09:54:38 connecting to desktop app: cannot connect to 1Password app, make sure it is running
...
thecatfix
2 months agoDedicated Contributor
OMG....did you discover 1password not cross distro compatible. This changes everything. i am using arch and have had same issues
Michael_Mercuri
2 months agoDedicated Contributor
thecatfix, I'm curious, in your case are you using X11 or Wayland?
Are you able to use `op` command manually from your shell to interact with 1Password Desktop App (e.g. to read items)?
- thecatfix1 month agoDedicated Contributor
Sorry for the late reply. I have the Omarchy mirror that uses Wayland. I am thinking about switching to ubuntu based on your posts. Great research.
- Michael_Mercuri1 month agoDedicated Contributor
thecatfix if you're still having issues I would encourage you to submit a 1Password support ticket. I found the 1Password team to be very responsive with timely and uber-informative responses. They were able to get me a work around, which I briefly mentioned in a previous post.
FWIW, Wayland is not the issue. I can use 1Password CLI perfectly okay from GNOME Wayland on Ubuntu 24.
The main issue appears to be related to how the 1Password Desktop app validates the CLI connecting is being launched interactively by the user (as opposed to a rogue script). If the process starting the CLI has no PTY associated and the 1Password Desktop app can't otherwise determine the source of the CLI invocation (e.g. through systemd session variables, which are typically set by GDM or other desktop session manager) then the 1Password Desktop app closes the the connection with the CLI and considers it "untrusted". Logs with these details can be seen when running both the 1Password Desktop app and the CLI with "--debug" option.