this post was submitted on 03 Feb 2024
660 points (90.2% liked)

linuxmemes

20777 readers
402 users here now

I use Arch btw


Sister communities:

Community rules

  1. Follow the site-wide rules and code of conduct
  2. Be civil
  3. Post Linux-related content
  4. No recent reposts

Please report posts and comments that break these rules!

founded 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 9 points 7 months ago* (last edited 7 months ago) (2 children)

Screen sharing is different thing, there is no fragmentation there.

But in order to take screenshot I had to write different code:

For Gnome.

For KDE. It also requires special line in desktop file for security reasons.

For all other DEs.

Global shortcuts are even worse. It also DE specific and users have to manually register them in DE settings. In order for your application to support this, it should export such functions via the Dbus interface. And all this incompatible with Windows (my app is cross-platform), so I had to provide in-app interface for global shortcuts too that works for Windows and X11 users.

[–] [email protected] 2 points 7 months ago

Oh no. Oh no. Way to shoot ourselves in the foot, Wayland.

[–] [email protected] 1 points 7 months ago (1 children)

What prevents you from using org.freedesktop.portal.Screenshot with GNOME and KDE as well? They both support taking screenshots using that method.

[–] [email protected] 2 points 7 months ago (1 children)

Unfortunately, you on GNOME and KDE you don't have org.freedesktop.portal.Screenshot method in /org/freedesktop/portal/desktop.

[–] [email protected] 2 points 7 months ago* (last edited 7 months ago) (1 children)

Not trying to be a menace, but I just tried it out using xdg-portal-test-kde and the screenshot portal definitely works on KDE Plasma 5.27.10. If you are experiencing issues with that, please create a bug report for xdg-desktop-portal-kde so it can be fixed.

[–] [email protected] 1 points 7 months ago

Strange, doesn't work for me, I also run 5.27.10. Will take a look, thanks!