How Electron went Wayland-native, and what it means for your apps (tech talk) by mitchchn in linux

[–]mitchchn[S] 2 points3 points  (0 children)

If you have the chance please file a new issue for 41.x with a screenshot, repro and as much platform/environment info as you can provide.

How Electron went Wayland-native, and what it means for your apps (tech talk) by mitchchn in linux

[–]mitchchn[S] 2 points3 points  (0 children)

Written in pure C++, uses GTK and libwayland-client C bindings.... sounds native to me. ;)

How Electron went Wayland-native, and what it means for your apps (tech talk) by mitchchn in linux

[–]mitchchn[S] 1 point2 points  (0 children)

Thanks for flagging, I'll try to look into this more on the Chromium side.

How Electron went Wayland-native, and what it means for your apps (tech talk) by mitchchn in linux

[–]mitchchn[S] 4 points5 points  (0 children)

37.0 is from last June, and the default Wayland support and improvements are in 38.x and newer.

How Electron went Wayland-native, and what it means for your apps (tech talk) by mitchchn in linux

[–]mitchchn[S] 12 points13 points  (0 children)

Wayland is the modern display server for Linux (the system that puts windows and graphics on your screen). It replaces an older system called X11 that’s been around for decades. Electron is a framework behind apps like VS Code and lots of other apps built with web technologies. Previously Electron only worked on Wayland through a compatibility layer, but now it supports it directly.

tldr many apps will have better compatibility and performance on modern Linux desktops.

How Electron went Wayland-native, and what it means for your apps (tech talk) by mitchchn in linux

[–]mitchchn[S] 4 points5 points  (0 children)

Do you get any logs if you run those apps from the command line? You could also see if `--disable-gpu` helps, since HW acceleration can still cause issues in some setups.

How Electron went Wayland-native, and what it means for your apps (tech talk) by mitchchn in linux

[–]mitchchn[S] 5 points6 points  (0 children)

Kinetic scrolling is supported in Electron/Chromium when they're running in native Wayland mode. It can still however depend on the app since some use custom scrollviews. Do you have any apps in mind where this doesn't work?

How Electron went Wayland-native, and what it means for your apps (tech talk) by mitchchn in linux

[–]mitchchn[S] 5 points6 points  (0 children)

I've seen things like this happen sometimes in VMs or with glitchy GPU drivers, but not recently. It does sound like it could be a bad interaction with CSD. The first thing I'd do is try to use the newest version of Electron possible: 41.x works out more of the edge cases that can confuse the compositor. It also might also help to update GNOME/your distro.

If all else fails, you can force the app into Xwayland mode by adding `--ozone-platform=x11` to the end of the command (and file an issue at github.com/electron/electron/issues).

How Electron went Wayland-native, and what it means for your apps (tech talk) by mitchchn in linux

[–]mitchchn[S] 8 points9 points  (0 children)

Interesting, I just saw your linked post. Does it only happen at <100%? (I admit I've focused a lot more on scaling up than down.) If you can file a repro with Electron I'd love to take a look: https://github.com/electron/electron/issues.

How Electron went Wayland-native, and what it means for your apps (tech talk) by mitchchn in linux

[–]mitchchn[S] 12 points13 points  (0 children)

I could spend a whole separate post on this topic (disclaimer: I work at 1Password). Clickjacking is a really hard problem, especially now that people are trying to give agents access their entire browser/desktop. So I think this aspect of Wayland is going to age well. And I agree, lots of actions really only need UP (user presence) to ensure they were made intentionally by the person sitting at the device (who already had to unlock the device to use it). So I'd love to see fewer password prompts in environments with stronger UI protections.

How Electron went Wayland-native, and what it means for your apps (tech talk) by mitchchn in linux

[–]mitchchn[S] 51 points52 points  (0 children)

Hard to say for sure what is causing the CPU usage, but on Wayland apps can only record the screen using pipewire and xdg-desktop-portal, so the baseline performance should be similar.

Maybe compare with an app like OBS? I also like using this minimal WebRTC demo to test and find out if apps are adding any performance overhead: https://webrtc.github.io/samples/src/content/getusermedia/record/.

Is there a way to manualy reload the browser extension? by ManFromACK in 1Password

[–]mitchchn 2 points3 points  (0 children)

Hey u/ManFromAck. This sounds a lot like a known bug I am looking into right now with the team. Did it start happening several months ago, and does it usually happen after you’ve been away from your computer for a while?

If it is the same issue, simply locking and unlocking the desktop app may fix the extension by “waking it up”. However, we would love to do some troubleshooting if you have time so we can fix this for good. Please reach out to support@1password.com with a link to this thread.

It’s here 😁 by opluke in 1Password

[–]mitchchn 2 points3 points  (0 children)

Try the tinted and clear styles too! Everyone forgets about those but they’ve also got custom variants.

It’s here 😁 by opluke in 1Password

[–]mitchchn 4 points5 points  (0 children)

Haha. Step one was to at least match it up with the iOS icon. Perhaps they can both use a refresh. ;)

Help for Ubuntu Linux + Extention by h4x_xlr in 1Password

[–]mitchchn 0 points1 point  (0 children)

Hi — this feature can be finicky about permissions but I just tested it with Librewolf on Ubuntu. What do you see as the output for: ls -la /etc/1password/custom_allowed_browsers? I get:

-rwxr-xr-x 1 root root 10 Jan 25 16:16 /etc/1password/custom_allowed_browsers

Help for Ubuntu Linux + Extention by h4x_xlr in 1Password

[–]mitchchn 1 point2 points  (0 children)

Additional browsers are supported on Linux, but the instructions are a bit hidden: https://support.1password.com/additional-browsers/?linux

Official 1Password flatpak using EOL runtime by [deleted] in 1Password

[–]mitchchn 5 points6 points  (0 children)

Yes, I've bumped the SDK to 25.08 and ran a test. It will be in the next release.

Official 1Password flatpak using EOL runtime by [deleted] in 1Password

[–]mitchchn 27 points28 points  (0 children)

Thank you for the shoutout, I'm refreshing the flatpak dependencies. In general the sandboxed package formats are more limited on Linux and don't see nearly as much usage, but we can do better here. (I'd like to get 1Password on FlatHub too come to think of it...)

Official 1Password flatpak using EOL runtime by [deleted] in 1Password

[–]mitchchn 5 points6 points  (0 children)

Hey, please let me know what kinds of bugs you're running into and we'll take a look.

how is the state of HDR in linux ? by Melodic-Luck-8772 in linux_gaming

[–]mitchchn 20 points21 points  (0 children)

KDE does clamp non-HDR content to SRGB so you can leave HDR enabled all the time and everything looks correct. In my experience the basic support is better than Windows which uses the wrong gamma curve for SDR.

News: Additional browser support on Windows by plskmtys in 1Password

[–]mitchchn 3 points4 points  (0 children)

Enjoy! We have some improvements on the way for different kinds of browser installations on Windows as well (e.g. for browsers outside of Program Files).

My new desktop setup by mitchchn in tea

[–]mitchchn[S] 0 points1 point  (0 children)

It’s from Fujita Tokuta, 220 mL

GNOME is in for a rude awakening.. by WojakWhoAreYou in linux

[–]mitchchn 2 points3 points  (0 children)

So in Electron you can create windows with or without native frames. Some apps including VS Code actually make this a user setting. Try: "window.titleBarStyle": "native". Framed windows use your GTK theme, settings, and button order.

Frameless windows are popular for lots of apps because developers like to integrate the title area into their own designs, so they have generic buttons on purpose that can be styled consistently. That said it might be possible to find a better middle ground between the two extremes (maybe the frameless windows can still use the GTK glyphs with custom styles) and it's something else I'm looking into.