ColourPicker icon indicating copy to clipboard operation
ColourPicker copied to clipboard

Cosmic support

Open BiteClassroom opened this issue 2 months ago • 10 comments

any plans to support Cosmic

BiteClassroom avatar Apr 20 '24 17:04 BiteClassroom

Does the snap not work in 18.10?

stuartlangridge avatar Apr 20 '24 18:04 stuartlangridge

Im using POP OS 22.04 with the new cosmic DE on wayland. the flatpack did now allow me to pick outside the app window. the snap wont even open (pick-colour-picker 1.60.178-e3e4c2b )

BiteClassroom avatar Apr 21 '24 06:04 BiteClassroom

Ah, a different cosmic (Ubuntu 18.10 was also code named that). Anyway, Pick does not work under Wayland at all, I'm afraid. It's not possible for it to do so in any portable way; Wayland-based desktops block an application (rather than the desktop shell itself) from being able to capture the screen, and provide no standard way around that. So Pick under Wayland does not and cannot work, sorry.

stuartlangridge avatar Apr 21 '24 06:04 stuartlangridge

Ok i see,so Any plans to do a Wayland edition in the future ? X11 will die one day anyway

BiteClassroom avatar Apr 21 '24 06:04 BiteClassroom

Sadly, as I say, Wayland makes all applications of this type impossible. An app is not allowed to capture the screen. Only the desktop shell can do it. This means that if you'd like Pick to work on your Wayland desktop, then you'll have to lobby the makers of your desktop shell (System76?) to implement a feature like Pick in their shell themselves; an application can't do it.

(The other alternative is that the desktops of the world all agree on a standard API by which applications can request access to the screen display somehow and be granted that. If that happens and all desktop shells support it, I'd be happy to use that API in Pick. So far there's been little or no indication that that's going to happen, but if that's something you'd like to push for, the FreeDesktop people are probably a good place to start.)

stuartlangridge avatar Apr 21 '24 06:04 stuartlangridge

ok thanks so much

BiteClassroom avatar Apr 21 '24 06:04 BiteClassroom

There's already a standard protocol, it's called wlr screencopy. Also, all applications that need access to your screen will just prompt your portal which acts as a middle man, they never have to deal with each compositor'a API individually.

BiteClassroom avatar Apr 21 '24 10:04 BiteClassroom

There is. However, as I understand it, this isn't something that'll be implemented by all desktops; it's a wlroots thing, and not stable or standardised yet. I might be wrong, but https://www.reddit.com/r/gnome/comments/10nuo4c/is_support_for_wlrscreencopyunstablev1_in_the/ describes one example of how it won't be implemented until it's stable. If I'm out of date on this and everyone actually does implement this already (and some way to change the mouse cursor to a custom image) then I'll happily look at having Pick work with it.

stuartlangridge avatar Apr 21 '24 10:04 stuartlangridge

Depends on your definition of "standardized", Gnome doesn't implement some protocols that are standardized, like layer_shell, but this is a Gnome issue, not a Wayland issue

You can make your own cursor pack with hyprcursor

BiteClassroom avatar Apr 21 '24 10:04 BiteClassroom

The xdg-desktop-portal interface for ScreenCapture is the de-facto standard protocol and supported by COSMIC

BiteClassroom avatar Apr 23 '24 23:04 BiteClassroom