joplin
joplin copied to clipboard
Desktop/Linux: Running with native Wayland support: Window missing titlebar and close button on GNOME
Environment
Joplin version: 2.9.17 Platform: GNOME Desktop OS specifics: Ubuntu 22.10
Steps to reproduce
- Run Joplin with
--enable-features=UseOzonePlatform --ozone-platform=wayland
command line arguments.
Observed
Joplin lacks a titlebar and window borders and the mouse cursor doesn't follow the system's theme. Additionally, Joplin's icon is the default "no icon" icon:
Describe what you expected to happen
Joplin should have a titlebar, like other applications, The cursor color should follow the system's theme. The Joplin window should have a non-default icon in the task manager.
Logfile
Terminal Output
$ ./Joplin-2.9.17.AppImage --enable-features=UseOzonePlatform --ozone-platform=wayland --open-dev-tools --log-level debug
xdg-settings: invalid application name
Try 'xdg-settings --help' for more information.
[9662:1212/124816.145966:ERROR:gpu_init.cc(481)] Passthrough is not supported, GL is egl, ANGLE is
Screenshot
Reasons to support Wayland natively
- Touchpad pinch zooming doesn't work with X11 or XWayland.
- Touchpad pinch zooming is used by some plugins (e.g. js-draw).
- Application is more likely to scale properly (without blurriness) on high-resolution displays.
Some of the above issues might be fixed in a more recent version of Electron.
Can't that be fixed by running the Linux installer? Since it also installs the icons and desktop shortcuts.
Can't that be fixed by running the Linux installer? Since it also installs the icons and desktop shortcuts.
I'll test it in a few hours. That should fix the icons, but I don't think it will fix the missing window titlebar.
Both issues persist after using the install script:
The icon is present when I run Joplin with XWayland, however.
As Joplin >= 2.9.1 uses Electron 18, you can try enabling WaylandWindowDecorations
like this:
--enable-features=UseOzonePlatform,WaylandWindowDecorations --ozone-platform=wayland
but alas, this results in completely borked window decorations and faulty maximizing with GNOME 42.4 for me.
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? If you require support or are requesting an enhancement or feature then please create a topic on the Joplin forum. This issue may be closed if no further activity occurs. You may comment on the issue and I will leave it open. Thank you for your contributions.
This is how it looks like for me with WaylandWindowDecorations
added. The buttons are not actually working anyway. Also note that there is no icon in the side panel.
Based on the comment here: https://github.com/logseq/logseq/issues/5010 , it seems that this issue will be solved upgrading Electron to 19.0.12
I can confirm, Joplin-2.12.18.AppImage can start on Wayland seamlessly, without any problems.
Window frame showed correctly, buttons works. See screenshot:
I can also confirm it now works for me. However, StartupWMClass
is different when launching on Wayland (@joplin/app-desktop
instead of Joplin
) so the window is not associated with its icon. I had to adjust the .desktop
file manually.
Joplin-2.12.18.AppImage does not show the titlebar for me.
$ ~/.joplin/Joplin.AppImage --enable-features=UseOzonePlatform,WaylandWindowDecorations --ozone-platform=wayland
Ubuntu 23.04 with GNOME 44.3
EDIT: Also tried Joplin-2.13.2.AppImage and same issue
Somehow the Joplin window was stuck in fullscreen mode
$ nano ~/.config/Joplin/window-state-prod.json
Set "isFullScreen":false