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

COSMIC Desktop support #25

Open
BiteClassroom opened this issue Apr 18, 2024 · 4 comments
Open

COSMIC Desktop support #25

BiteClassroom opened this issue Apr 18, 2024 · 4 comments

Comments

@BiteClassroom
Copy link

BiteClassroom commented Apr 18, 2024

any plan to support COSMIC Desktop

@rharmonson
Copy link

Instead of opening a second issue, hope to see it migrated from qt5 to qt6 and wayland support. This should enable support for Cosmic desktop, Hyprland, etc.

@keshavbhatt
Copy link
Owner

Thanks, I will attempt to do it in coming days.

@gen2brain
Copy link

The PR #28 allows compiling with Qt6. However, the "Pick Screen Color" button is missing on the Wayland session. For that, see https://bugs.kde.org/show_bug.cgi?id=479406 and https://bugreports.qt.io/browse/QTBUG-120957.

This is a limitation of Wayland stack, applications are not allowed to interact with other stuff on the desktop. It doesn't help that every compositor implements screenshots differently, Gnome has its own DBUS API, KDE its own, then there is https://wayland.app/protocols/wlr-screencopy-unstable-v1 from Sway and https://wayland.app/protocols/wlr-export-dmabuf-unstable-v1 from wlroots, but compositor must implement one of them. The color pickers are basically a screenshot plus a little extra.

As I understand from those bugs above, there is an implementation for Qt that uses XDG portals for Screenshots (both for Flatpak and regular desktop apps) but that doesn't work for me. I am on LXQt/labwc and I am using xdg-desktop-portal-lxqt so perhaps something is not implemented for my combo.

Perhaps is best to just wait for Qt to fix this, otherwise, this must be implemented specially for every compositor out there.

@gen2brain
Copy link

gen2brain commented Nov 15, 2024

Ok, there is a nice list here https://wiki.archlinux.org/title/XDG_Desktop_Portal#List_of_backends_and_interfaces , so after installing xdg-desktop-portal-wlr now I can see the button, but it doesn't do anything. Not sure if this is related to labwc I am using, wlroots or whatever, but for me currently it will not work.
I guess that compiling with Qt6 should just work on Gnome and KDE but I don't have where to test.

Also, it is not possible to just force X via xwayland, i.e., with QT_QPA_PLATFORM=xcb the app will segfault when pressing button at QWindow::winId(), because Wayland windows don't have ids.

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

No branches or pull requests

4 participants