Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Linux] colorpicker is not working on wayland. #106

Open
darkRaspberry opened this issue Jun 1, 2021 · 22 comments
Open

[Linux] colorpicker is not working on wayland. #106

darkRaspberry opened this issue Jun 1, 2021 · 22 comments

Comments

@darkRaspberry
Copy link

darkRaspberry commented Jun 1, 2021

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

@Toinane
Copy link
Owner

Toinane commented Jun 1, 2021

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

@darkRaspberry
Copy link
Author

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.

@Toinane
Copy link
Owner

Toinane commented Nov 23, 2021

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 👍

@darkRaspberry
Copy link
Author

darkRaspberry commented Nov 23, 2021

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.
microsoft/vscode#109176

@Toinane
Copy link
Owner

Toinane commented Nov 25, 2021

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.

@darkRaspberry
Copy link
Author

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

@nazar1ua
Copy link

@Toinane Please update the snap

@Toinane
Copy link
Owner

Toinane commented Feb 19, 2022

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 👍

@nazar1ua
Copy link

Thanks

@step4wd
Copy link

step4wd commented May 17, 2022

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

@Toinane
Copy link
Owner

Toinane commented May 18, 2022

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
Copy link
Owner

Toinane commented May 18, 2022

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

@step4wd
Copy link

step4wd commented May 18, 2022

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

image

@Toinane
Copy link
Owner

Toinane commented May 18, 2022

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

@darkRaspberry
Copy link
Author

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.

@Toinane
Copy link
Owner

Toinane commented May 18, 2022

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
Copy link
Owner

Toinane commented May 18, 2022

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

@nyjsnl
Copy link

nyjsnl commented Jul 22, 2023

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

@GogoFC
Copy link

GogoFC commented Oct 31, 2023

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

@dCo3lh0
Copy link

dCo3lh0 commented Dec 5, 2024

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

having this same error

@Toinane
Copy link
Owner

Toinane commented Dec 6, 2024

Got it, I've started to rewrite c++ module to fix some issues like this one, I need to take time to continue on this rewrite

@GogoFC
Copy link

GogoFC commented Dec 6, 2024

Got it, I've started to rewrite c++ module to fix some issues like this one, I need to take time to continue on this rewrite

Hello. I thought you already fixed this because it works fine now. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants