103martyrs and 119 injuries in 24 hours
The Palestinian Ministry of Health in the Gaza Strip announced that 103 martyrs and 219 injuries have been reported to hospitals in the Gaza Strip over the past 24 hours.The ministry said in a press statement on Thursday that a number of victims areDAILY YEMEN
jwz
in reply to jwz • • •I honestly thought that "grab a screenshot" would be a straightforward and non-controversial thing. I mean how could it not be?
But you kick over any Wayland rock, and this is the kind of absolutely bugfuck insanity you find underneath.
Mark T. Tomczak
in reply to jwz • • •stares in infosec
(More seriously: I went chasing this question in the browser domain to simplify bug reporting, and oh yeah screenshotting got a lot more complicated when we realized you could use it to steal bank account data at scale. I don't know for sure, but I assume someone in Wayland's spec team got real paranoid about that stuff too.)
Viss
in reply to jwz • • •jwz
in reply to jwz • • •What's the proper way to determine that you are speaking to XWayland rather than Xorg? Is it really "pick one of half a dozen possible environment variables and pray"?
It is software malpractice that the XWayland X server doesn't identify itself via Vendor String, or the presence of extension or something.
Raven667
in reply to jwz • • •I don't develop desktop software but I thought I'd at least take a stab at it, for funsies, and I think we may be barking up the wrong tree. It looks like a lot of this kind of communication, asking the windowmanager/compositor/shell to hand over a screenshot, has moved to DBus APIs, either desktop-specific or standardized through freedesktop.org, so for a gnome desktop something like `dbus-send --print-reply --session --dest=org.gnome.Shell.Screenshot /org/gnome/Shell/Screenshot org.gnome.Shell.Screenshot.Screenshot boolean:true boolean:true string:/var/home/myusername/Pictures/foo.jpg` might work, if I figured out how to make the desktop portal pop up the dialog asking for permission. There may be a more standard API in flatpak.github.io/xdg-desktop-… which looks something like `dbus-send --print-reply --session --dest=org.freedesktop.portal.Desktop /org/freedesktop/portal/desktop org.freedesktop.portal.Screenshot.Screenshot '' '{"interactive": True, "handle_token": "myapp-abc123xyznonce"}'` but I haven't learned the format for passing a vardict of parameters using dbus-send or getting the wayland surfact ID to pass as the parent_window parameter. I was using D-Feet to explore the API surface and forum.qt.io/topic/136838/how-t… was one of the closer examples of a client using this particular mechanism.
I'm going to go grab an adult beverage and fuck around before heading to bed, HTH and good luck.
Screenshot
XDG Desktop PortalField Replaceable Unit
in reply to jwz • • •Eugene
in reply to jwz • • •Oh, these words' redefinitions looks crazy, like newspeak from totalitarian distopia:
Graphical desktop environment is shell
Window manager is compositor
War is peace
Freedom is slavery
Ignorance is strength
piegames
in reply to jwz • • •Felix Palmen
in reply to jwz • • •Joshua M. Clulow
in reply to jwz • • •Glyph
in reply to jwz • • •Old Man in the Shoe
in reply to jwz • • •Irenes (many)
in reply to jwz • • •thanks for your efforts! we're a firm believer that any new windowing system has to have fun stuff or it's just corporate bullshit
we noticed replies on fedi wind up on the blog, can we ask how you did that? if you've written about it we couldn't find where
Ricardo B�nffy
in reply to jwz • • •Jaycosm🔆
in reply to jwz • • •Can you use the KDE open source code for the Spectacle app to help you out? It seems to work well in Wayland on Fedora 42 KDE Plasma. The KDE team just completely revamped Spectacle in the latest release - I like it. Good luck! 👍
github.com/KDE/spectacle
invent.kde.org/plasma/spectacl…
Plasma / Spectacle · GitLab
GitLabaeva
in reply to jwz • • •MC
in reply to jwz • • •I'm at least a little hopeful that the inclusion of the ext-image-capture-source-v1 and ext-image-copy-capture-v1 screen copy protocols in the official Wayland repo will help things going forward. It's based on wlroot's wlr-screencopy-unstable-v1.
Hopefully, since they're now official extensions, other compositors, not necessarilly based on wlroots, will pick it up.