You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Electron 38 and above do not use Wayland by default #48298
I also notice with electron@38 and above currently, passing --ozone-platform=wayland will attempt to open Wayland mode but never shows the electron window
@clavin sorry to ping you, but does your PR fix that?
@alexsch01 Can you test with the nightly that we'll release on Monday? If you still see that issue, could you please open a new issue for it? Thank you!
I've updated the joplin-desktop snap with today's nightly.
sudo snap install joplin-desktop --edge
I'm trying it in a Virtual Machine and suddenly I've got a wonderful problem, to have the "Wayland" icon! YAY! Unfortunately it doesn't work. It does in X11 though.
Could people try this on real hardware maybe and confirm if there's an issue? I'm testing in Fedora KDE in Hyper V, which isn't ideal perhaps.
jcarroll@fedora:~$ unset XDG_SESSION_TYPE
jcarroll@fedora:~$ joplin-desktop
Error org.freedesktop.DBus.Error.Failed: cannot set"default-url-scheme-handler" subproperty "joplin" setting to invalid value "@joplin/app-desktop.desktop"
Sentry: Initialized with autoUploadCrashDumps: false
(joplin:3701): Gtk-WARNING **: 23:49:05.504: Theme parsing error: gtk.css:1:21: Failed to import: Error opening file /home/jcarroll/snap/joplin-desktop/125/.config/gtk-3.0/colors.css: No such file or directory
Gtk-Message: 23:49:05.529: Failed to load module "colorreload-gtk-module"
Gtk-Message: 23:49:05.529: Failed to load module "window-decorations-gtk-module"
[3868:0915/234905.817297:ERROR:components/viz/service/main/viz_main_impl.cc:189] Exiting GPU process due to errors during initialization
(node:3907) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `exe --trace-deprecation ...` to show where the warning was created)
# Looks bad? This is working fine, XWayland is in use and the app works fine.
jcarroll@fedora:~$ XDG_SESSION_TYPE=wayland joplin-desktop
[4050:0915/234920.294742:ERROR:ui/ozone/platform/wayland/common/drm_render_node_path_finder.cc:45] drmGetDevices2() has not found any devices: Operation not permitted (1)
Error org.freedesktop.DBus.Error.Failed: cannot set"default-url-scheme-handler" subproperty "joplin" setting to invalid value "@joplin/app-desktop.desktop"
Sentry: Initialized with autoUploadCrashDumps: false
[4050:0915/234920.779590:ERROR:ui/ozone/platform/wayland/host/wayland_zwp_linux_dmabuf.cc:305] drmGetDeviceFromDevId() returned an error: Resource temporarily unavailable (11)
(joplin:4050): Gtk-WARNING **: 23:49:20.888: Theme parsing error: gtk.css:1:21: Failed to import: Error opening file /home/jcarroll/snap/joplin-desktop/125/.config/gtk-3.0/colors.css: No such file or directory
[4161:0915/234920.919391:ERROR:ui/ozone/platform/wayland/common/drm_render_node_path_finder.cc:45] drmGetDevices2() has not found any devices: Invalid argument (22)
[4161:0915/234920.956561:ERROR:components/viz/service/main/viz_main_impl.cc:189] Exiting GPU process due to errors during initialization
[4233:0915/234920.981454:ERROR:ui/ozone/platform/wayland/common/drm_render_node_path_finder.cc:45] drmGetDevices2() has not found any devices: Interrupted system call (4)
[4233:0915/234921.016411:ERROR:components/viz/service/main/viz_main_impl.cc:189] Exiting GPU process due to errors during initialization
[4278:0915/234921.025026:ERROR:ui/ozone/platform/wayland/common/drm_render_node_path_finder.cc:45] drmGetDevices2() has not found any devices: Interrupted system call (4)
(node:4272) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `exe --trace-deprecation ...` to show where the warning was created)
# Wayland icon shown in desktop (likely packaging error with `StartupWMClass` - but regardless, app is completely dead.
^Cjcarroll@fedora:~$
Edit:
Very likely a VM problem, works with --disable-GPU
FWIW for future packagers who see Wayland icons like the above, the taskbar icons are related to StartupWMClass in .desktop files as mentioned, adjusting my work now, I get this.
The window bar itself might be a valid Electron issue, but I think as far as high level flag controlling this goes, it seems to be working great and everything else is separate specific issues (or downstream packaging)
Activity
[-]Electron 38.1.0 doesn't use Wayland by default[/-][+]Electron 38 and above doesn't use Wayland by default[/+][-]Electron 38 and above doesn't use Wayland by default[/-][+]Electron 38 and above do not use Wayland by default[/+]nikwen commentedon Sep 11, 2025
Thanks for reporting!
Here's an explanation of why the change was made: #48001
That said, that issue also has a comment mentioning that this no longer works properly.
CC @clavin
clavin commentedon Sep 11, 2025
Oops, this is totally right! I missed a call to the function that connects this env var to Chromium.
My apologies to Wayland users, I'll push a fix shortly. 🙇
alexsch01 commentedon Sep 12, 2025
I also notice with electron@38 and above currently, passing
--ozone-platform=waylandwill attempt to open Wayland mode but never shows the electron window@clavin sorry to ping you, but does your PR fix that?
nikwen commentedon Sep 14, 2025
@alexsch01 Can you test with the nightly that we'll release on Monday? If you still see that issue, could you please open a new issue for it? Thank you!
JGCarroll commentedon Sep 15, 2025
I've updated the
joplin-desktopsnap with today's nightly.sudo snap install joplin-desktop --edgeI'm trying it in a Virtual Machine and suddenly I've got a wonderful problem, to have the "Wayland" icon! YAY! Unfortunately it doesn't work. It does in X11 though.
Could people try this on real hardware maybe and confirm if there's an issue? I'm testing in Fedora KDE in Hyper V, which isn't ideal perhaps.
Edit:
Very likely a VM problem, works with
--disable-GPUalexsch01 commentedon Sep 15, 2025
@JGCarroll I reported an issue to Electron
#48321
JGCarroll commentedon Sep 15, 2025
Thanks for reporting that separately :)
FWIW for future packagers who see Wayland icons like the above, the taskbar icons are related to
StartupWMClassin.desktopfiles as mentioned, adjusting my work now, I get this.The window bar itself might be a valid Electron issue, but I think as far as high level flag controlling this goes, it seems to be working great and everything else is separate specific issues (or downstream packaging)