Copy passwords under pure Wayland
I'm running 1Password on linux under pure Wayland (no XWayland) and for the most part it "just works" - the only thing missing is actually copying items using the in-app Copy function. Doing so results in this error
ERROR 2021-06-22T08:14:57.096 tokio-runtime-worker(ThreadId(11)) [1P:op-app/src/app/backend.rs:184] AppError { error: <redacted>, human_readable_label: None, cause: None } (node:5536) UnhandledPromiseRejectionWarning: {"error":"OpeningClipboard(X11ClipboardError(XcbConn(ClosedParseErr)))","humanReadableLabel":null} (Use `1password --trace-warnings ...` to show where the warning was created) (node:5536) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2) (node:5536) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
I'm guessing because 1Password uses an X11 clipboard API which isn't available in Wayland. I know this setup is officially unsupported but since it /mostly/ works, it'd be awesome to get this last little bit done!
wayland 1.19
wayland-protocols 1.21
sway 1.6
wl-clipboard 2.0.0
1Password Version: 8.0.34
Extension Version: Not Provided
OS Version: Arch Linux
Sync Type: Not Provided
Comments
-
Thanks for the response! For anyone having the same issue, you can edit the item and copy-paste fine from those input fields. It's only the built-in copy function that doesn't work :)
0 -
Oooh, awesome! Thanks for sharing that workaround! :smile:
0 -
This is the only issue I have on Wayland only environment.
0 -
Unfortunately this workaround stopped working for me at some point in recent months. I'm no longer able to copy via the Copy button or by switching to edit and copying manually. I'm forced to use the browser extension to actually copy anything.
0 -
Hi @layeggistrue - may I ask what OS and what version of the 1Password for Linux app you're currently running? I'd be happy to check this out further.
0 -
Archlinux, with Sway. 1Password 8.4.1, run via "1password --enable-features=UseOzonePlatform --ozone-platform=wayland"
0 -
Thanks for pointing this out. I hadn't thought of this problem way back when I posted the instructions for running 1Password in Wayland, but one of our engineers does know about.
Last month we were working on getting 1Password working flawlessly in Wayland. Unfortunately, we had some significant regressions in Electron at the time and weren't able to move forward. At this moment, we're waiting for a particular feature to get merged into the Electron mainline, and we have a lot of attention on another major project, but I think that I will be able to get the Wayland port done shortly after that one feature merges.
1 -
Can someone help me? 1Password is crashing on starting:
hastebin.com/zuxufawujo.coffeescript0 -
Hi, @goldgamer. Unfortunately, we can't help you at the moment. That is the exact problem we were facing. Right now I'm hoping that a new version of Electron will fix this problem, but I may eventually need to debug the Electron source itself.
Basically for now, the only solution is to drop the
--enable-features=UseOzonePlatform --ozone-platform=wayland
parameters and run in XWayland mode.0 -
On behalf of Savanni you're very welcome. :)
Ben
0 -
From reading a similar issue in the Signal Desktop app (also Electron-based), it looks like the upstream fix has landed in Electron https://github.com/signalapp/Signal-Desktop/issues/5719#issuecomment-1083555346
@Savanni , @Ben , do you think your team will be able to prioritize updating 1Password to use this Electron version? :pray: :fingers-crossed:
0 -
We ran some experiments with that last week, immediately after 18.1 landed. Everything was great until we realized that Electron 18 was broken for the Arm Linux build. So, we're holding off just a bit longer until the Arch Linux build is working again, too.
Basically, we're watching for this bug to be fixed: https://github.com/electron/electron/issues/33533
1 -
Any progress here? https://github.com/electron/electron/issues/33533 seems fixed
0 -
I understand that this may be an Electron thing, but copying stuff is one of the key features of a password manager.
I’ve been basically unable to use my 1Password app properly for the better part of 2022 because of this.Is a fix for this still on the roadmap?
2 -
I am also not able to copy from the 1Password app, would love to see this get addressed soon.
1password-beta-8.9.8_1.BETA-1
wayland-1.21.0-1
wayland-protocols-1.27-1
wlroots-0.15.1-6
sway-1:1.7-9
wl-clipboard-1:2.1.0-2
electron-20.0.3-3
electron19-19.0.13-3
electron18-18.3.9-30 -
Hi folks, I apologize for our delay in responding here. I've reached out to the relevant team to get an update on this issue.
Ali
1 -
I’ve been locked out of my bank account.
For a few seconds, I must have forgotten that copying from the 1Password app doesn’t work. So I made the mistake of clicking the Copy button, unaware that it wouldn’t do anything. Instead, some old text must have remained on the clipboard, ending up in the bank’s password field when I pasted it. After three failed attempts, the bank locked me out.
I acknowledge that that blunder is entirely on me, not the app’s fault.
Having said that:I’m absolutely willing to pay a bounty for the copy bug to be fixed.
Any news as to this issue’s current priority?
0 -
I would also like this to be fixed. I need to copy passwords from either op or browser extension and right now.
0 -
Hey @AliH1P @Savanni, any news? Still relevant and makes me increasingly unhappy like @Claudi I would also be willing to pay an extra bounty to the community for a decent/long-term fix. Sadly your apps are not open source (?) so we can't try our-self. I think that should signal how important this topic is for Wayland users I would say...
2 -
This works for me now in wayland. So something have happened. :D
1