Copy passwords under pure Wayland

ccakesccakes
Community Member

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

  • Dayton_agDayton_ag

    Team Member
    edited June 2021

    Hey @ccakes, thanks so much for bringing this to our attention! I've reached out to the Development team to pass this feedback along and to see what can be done in this case. Let me know if you have any questions! :smile:

    ref: /dev/core/core/#8258

  • ccakesccakes
    Community Member

    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 :)

  • Dayton_agDayton_ag

    Team Member

    Oooh, awesome! Thanks for sharing that workaround! :smile:

  • uhlajsuhlajs
    Community Member

    This is the only issue I have on Wayland only environment.

  • PeterG_1PPeterG_1P

    Team Member

    Thanks for the helpful info, @uhlajs. We appreciate it!

  • layeggistruelayeggistrue
    Community Member

    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.

  • PeterG_1PPeterG_1P

    Team Member

    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.

  • layeggistruelayeggistrue
    Community Member

    Archlinux, with Sway. 1Password 8.4.1, run via "1password --enable-features=UseOzonePlatform --ozone-platform=wayland"

  • SavanniSavanni

    Team Member

    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.

  • GoldgamerGoldgamer
    Community Member

    Can someone help me? 1Password is crashing on starting:
    hastebin.com/zuxufawujo.coffeescript

  • SavanniSavanni

    Team Member
    edited January 24

    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.

  • GoldgamerGoldgamer
    Community Member
    edited January 24

    @Savanni still thanks!

  • BenBen AWS Team

    Team Member

    On behalf of Savanni you're very welcome. :)

    Ben

  • sdmcclainsdmcclain
    Community Member

    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:

  • SavanniSavanni

    Team Member

    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

  • 0x0000x000
    Community Member

    Any progress here? https://github.com/electron/electron/issues/33533 seems fixed

Leave a Comment

BoldItalicStrikethroughOrdered listUnordered list
Image
Align leftAlign centerAlign rightToggle HTML viewToggle full pageToggle lights
Drop image/file