colorpicker icon indicating copy to clipboard operation
colorpicker copied to clipboard

[Linux] colorpicker is not working on wayland.

Open darkRaspberry opened this issue 4 years ago โ€ข 22 comments

Describe the bug Not working in wayland.

Sorry for deleting the template.

Now many distributions are moving from xorg to wayland. And Ubuntu (my current machine) is also moved to wayland by default. So its the ill effect of wayland and now colorpicker is not working. Like completely not working. Its just showing white color nothing else.

I confined its working on xorg and i'm using version 2.0.3

darkRaspberry avatar Jun 01 '21 17:06 darkRaspberry

Hey @darkRaspberry thank you for reporting this issue! How did you download Colorpicker? from snapstore, .deb file, other..?

Toinane avatar Jun 01 '21 17:06 Toinane

How did you download Colorpicker?

From your website I redirect here https://github.com/Toinane/colorpicker/releases/tag/2.0.3 I tried .AppImage and .deb.

Also I expected this when i was installing. Any app which works on something which require reading from screen like screen recorder or screenshot doesn't support wayland directly. Xorg and wayland is not compatible.

darkRaspberry avatar Jun 01 '21 19:06 darkRaspberry

Okay I see! I'm sorry for that. I'm a newbie on Linux so I don't know everything about it. I'll try to add wayland compatibility for the next update ๐Ÿ‘

Toinane avatar Nov 23 '21 15:11 Toinane

See the fact that you are using electron 9.x.x May be is the cause There is native wayland support by passing the flag in electron 12 which might be seems mature till now.(As release much earlier) There is native support in it. https://www.reddit.com/r/linux/comments/lw7cvk/electron_12_has_just_been_released_with_wayland/ This thread seems little worth to see.

FurtherYou can make these options your default for all Electron apps by adding the following into your ~/.config/electron-flags.conf.

--enable-features=UseOzonePlatform
--ozone-platform=wayland

In dead simple words wayland handles frontend of the linux distro. And IF you app doesn't support wayland or build on wayland. They they can't read from it. But still display on the screen very undesirably.

Default site- https://wayland.freedesktop.org/

There are newer version of electron also which support much well but. It up to you

Some useless discussion about wayland. https://github.com/microsoft/vscode/issues/109176

darkRaspberry avatar Nov 23 '21 17:11 darkRaspberry

Oh okay thank you for the update! I really appreciate ๐Ÿ‘ I'll update Colorpicker for Electron 16 and test the flag on it. I'm sorry for the seriously delay I have on this.

Toinane avatar Nov 25 '21 09:11 Toinane

@Toinane No need to say sorry. Instead I'm grateful that you made this cool awesome app.

darkRaspberry avatar Nov 25 '21 10:11 darkRaspberry

@Toinane Please update the snap

nazar1ua avatar Feb 19 '22 19:02 nazar1ua

Hey @niphoneua sorry, I'm actually working to rewrite all the app and it's take time, so when it's done, I'll update it. I don't know for the moment if the picker will work on Wayland, but I'll do my best to do it ๐Ÿ‘

Toinane avatar Feb 19 '22 20:02 Toinane

Thanks

nazar1ua avatar Feb 19 '22 20:02 nazar1ua

Waiting for the update. Ubuntu 22.04 is out and the App is not working on it maybe because of the Wayland issue

step4wd avatar May 17 '22 11:05 step4wd

Hey there! Thanks for your waiting! I'm really sorry for the issue I've released a new version with the latest Electron version. It sould work now again on Wayland, I've tried on Ubuntu 22.04 and looks fine. The only issue is the picker feature will not work on Wayland. I can't find a deps for picking color on screen compatible with wayland and nodejs and the only one I use is not maintained for now.

When I can, I'll switch from Electron to Tauri and use Rust deps to make this work again and to be more stable/efficient!

Toinane avatar May 18 '22 08:05 Toinane

Also, I'll not update the snap version as it's really hard to maintain it actually. I recommend to use the .deb / .AppImage for the moment

Toinane avatar May 18 '22 09:05 Toinane

Thank you! Tried the DEB version of 2.1.0 and unfortunately it is still unable to pick colours

image

step4wd avatar May 18 '22 09:05 step4wd

If you are in Wayland interface, it's normal yeah, It only work on x11 :/ you'll need to wait a little more the transition on Rust for wayland

Toinane avatar May 18 '22 10:05 Toinane

Before logging in, If you can change the session from wayland to xorg. Then it will work as perfect.

Adding wayland support to this app takes time. Please wait! This is open-source app, Toinane may fix it when he has time, keep patience.

darkRaspberry avatar May 18 '22 10:05 darkRaspberry

Yeah It's the best way for the moment ๐Ÿ‘ If you don't need picker, you can keep wayland. Really sorry for this, I'm not a pro on C++ module, I hope it will be better with Rust! I'm currently trying Tauri to make the next update

Toinane avatar May 18 '22 10:05 Toinane

image Looks to be working with tauri more easely than I was thinking!

Toinane avatar May 18 '22 10:05 Toinane

Dude, take a look at the color picker I wrote and give me some adviceย 

nyjsnl avatar Jul 22 '23 08:07 nyjsnl

Yeah I have the same on Ubuntu GNOME Wayland. Snap doesn't do anything.

Below error is from AppImage

Screenshot from 2023-10-31 02-35-56

GogoFC avatar Oct 31 '23 10:10 GogoFC