On some desktop environments, on Wayland, the clipboard does not not work properly on hyperland + flatpak. This is because the appropriate protocol is not available in flatpak.
Gnome (working) does not implement zwlr_data_control_manager_v1. #21068 adds a workaround via the RemoteDesktop portal.
KDE (working) should be working currently.
Hyperland, Niri (not working), do not work. As per @unlimitedsola's comment here #13431 (comment), the desktop environments do not expose the necessary wayland protocols to flatpak.
Cosmic (not working) - Remote desktop portal not supported, zwlr_data_control_manager_v1 not implemented according to @Linus-Sexy-Tips
There is a suggested workaround:
If your application has a window, please use the appropriate Wayland protocols for interacting with the Wayland clipboard (wl_data_device from the core Wayland protocol, the primary_selection protocol for the primary selection), for example via the smithay-clipboard crate. However, currently the clipboard may be used without a window present, when clearing the clipboard from the background. Further, we cannot perform native calls from the process that has the window available - the renderer process - without workarounds within electron.
Ideally, electron would fix this. Another hacky workaround would be to spawn an invisible window like wl-clipboard does.
On some desktop environments, on Wayland, the clipboard does not not work properly on hyperland + flatpak. This is because the appropriate protocol is not available in flatpak.
Gnome (working) does not implement
zwlr_data_control_manager_v1. #21068 adds a workaround via the RemoteDesktop portal.KDE (working) should be working currently.
Hyperland, Niri (not working), do not work. As per @unlimitedsola's comment here #13431 (comment), the desktop environments do not expose the necessary wayland protocols to flatpak.
Cosmic (not working) - Remote desktop portal not supported, zwlr_data_control_manager_v1 not implemented according to @Linus-Sexy-Tips
There is a suggested workaround:
Ideally, electron would fix this. Another hacky workaround would be to spawn an invisible window like
wl-clipboarddoes.