Created attachment 118377 [details] States related to steps SUMMARY: Under Gnome, application is not operational. STEPS TO REPRODUCE 1. Take any screen-shot; 2. Save screen-shot; 3. Validate the saving operation. OBSERVED RESULT 1. Process of taking picture behaves as it would be inhibited; no screen-shot is displayed in Spectacle – see 1.png –; 2. A target is normally suggested; 3. At the same time a file is saved, an error is produced – see 2.png, 3.png –. EXPECTED RESULT: application to be operational in Gnome. SOFTWARE/OS VERSIONS – Component: spectacle.x86_64 18.04.3-1.fc29 @fedora note: version not listed for selection in Bugzilla for KDE. – Run under: $ gnome-shell --version GNOME Shell 3.30.2 – Libraries (as reported in Spectacle): KDE Frameworks 5.54.0 Qt 5.11.3 (built against 5.11.3) The xcb windowing system
I'm assuming you're running a gnome default wayland session?
$ loginctl show-session `loginctl | sed -n '2p' | awk '{print $1}'` -p Type Type=wayland
Please answer the question so we can continue to triage the bug.
What that "Nate Graham" doing here?
Oh haha, I missed that you already answered the question! What capture modes produce this behavior? All of them? Some of them? Are there any that work?
No need for "the"; Rex Dieter alone was eligible to receive an answer. You can always participate, if others developers decided to let you participate. Keep in mind you are not on forum here. All capture modes produce reported behavior.
Thanks for answering the question. > You can always participate, if others developers decided to let you participate. That's not how bug trackers work. Any developer (or user) can participate as long as they are respectful. Please read https://community.kde.org/Get_Involved/Bug_Reporting#Bug_tracker_etiquette before posting another comment.
Bug not reported to be handle by something not observing KDE own rules. Second chance was already given. Definitively closed for my part.
This is a bug, so it needs to stay open. Bug reports are not assigned to individual people with others not allowed to comment unless invited. That's not how it works around here. You're welcome to stay around, but it would be helpful ot review your knowledge of KDE bug tracker procedures and etiquette. Again, I encourage you to read https://community.kde.org/Get_Involved/Bug_Reporting#Bug_tracker_etiquette.
No capture modes will work on gnome wayland. Gnome has a different DBus interface to kwin's wayland - and obviously grabbing the X root window won't work. I don't think there's any point spectacle doing anything until there's some sort of unity between them.
Given how easy platform backends for Spectacle are to code, I'd like to take a vote and either close this as something we won't do, or actually implement the backend. I do however agree with d_ed, even if we end up implementing a backend, who's going to test it regularly and make sure it works? GNOME's API isn't something we control, and this is something they're free to change from underneath us... and completely break everything.
There is sort of a common API now. We can port out backend to https://github.com/flatpak/xdg-desktop-portal/blob/master/data/org.freedesktop.portal.Screenshot.xml Then put an implementation for kwin inside our xdg-portal (if it's not there already)
@d_ed: This API looks very limited. Can we (KDE) extend it with more modes?
Confirmed on KDE Neon User Edition GNOME Wayland session: Started from konsole: Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway. Error querying plasma version "org.freedesktop.DBus.Error.ServiceUnknown" "The name org.kde.plasmashell was not provided by any .service files" Error querying plasma version "org.freedesktop.DBus.Error.ServiceUnknown" "The name org.kde.plasmashell was not provided by any .service files" Error querying plasma version "org.freedesktop.DBus.Error.ServiceUnknown" "The name org.kde.plasmashell was not provided by any .service files" Error calling KWin DBus interface: "org.freedesktop.DBus.Error.ServiceUnknown" "The name org.kde.KWin was not provided by any .service files" QPixmap::scaled: Pixmap is a null pixmap Trying to take the four different types of screenshot listed: Error calling KWin DBus interface: "org.freedesktop.DBus.Error.ServiceUnknown" "The name org.kde.KWin was not provided by any .service files" Error calling KWin DBus interface: "org.freedesktop.DBus.Error.ServiceUnknown" "The name org.kde.KWin was not provided by any .service files" Error calling KWin DBus interface: "org.freedesktop.DBus.Error.ServiceUnknown" "The name org.kde.KWin was not provided by any .service files" Error calling KWin DBus interface: "org.freedesktop.DBus.Error.ServiceUnknown" "The name org.kde.KWin was not provided by any .service files" Looks like it's heavily tied to kwin to actually capture anything.
*** Bug 431202 has been marked as a duplicate of this bug. ***
ATM spectacle in Wayland only support KWin compositor.
Good self explicit answer which does not allow confusion. I wish the text exhibited at https://github.com/KDE/kwin was of that kind. How not to get confused with such sentences: "Its primary usage is in conjunction with a Desktop Shell (e.g. KDE Plasma Desktop)" "KWin is not... (...) a replacement for window managers designed for use with a specific Desktop Shell (e.g. GNOME Shell)"". In "e.g. KDE Plasma Desktop" that "KDE Plasma Desktop" is dully presented as a specific Desktop Shell; In "specific Desktop Shell", once GNOME Shell is as "e.g." of specific Desktop Shell, it is not supported. It''s where non-sense-sentences lead. That is once thing to produce code, one another to master writing.
Feel free to send a merge request to improve that text! It lives here: https://invent.kde.org/plasma/kwin/-/blob/master/README.md