[gimp/gimp-2-10] screenshot: Remove GNOME Shell implementation



commit c375b2349a877929b4e7161d68dee80af88691e6
Author: Niels De Graef <nielsdegraef gmail com>
Date:   Wed Dec 8 13:17:21 2021 +0100

    screenshot: Remove GNOME Shell implementation
    
    GNOME Shell has started restricting access for it's Screenshot D-Bus API
    to internal components only [1] for security reasons. In other words,
    this will start failing, so remove it in favor of just using the
    freedesktop portal, which should always work.
    
    [1]: https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1970
    
    (cherry picked from commit 62953e6830391aa67140f8417021fa4f4917899f)

 plug-ins/screenshot/Makefile.am              |   2 -
 plug-ins/screenshot/screenshot-gnome-shell.c | 209 ---------------------------
 plug-ins/screenshot/screenshot-gnome-shell.h |  32 ----
 plug-ins/screenshot/screenshot.c             |  10 +-
 4 files changed, 1 insertion(+), 252 deletions(-)
---
diff --git a/plug-ins/screenshot/Makefile.am b/plug-ins/screenshot/Makefile.am
index 0d8d829f21..3db7e5bc1b 100644
--- a/plug-ins/screenshot/Makefile.am
+++ b/plug-ins/screenshot/Makefile.am
@@ -48,8 +48,6 @@ screenshot_SOURCES = \
        screenshot.h                            \
        screenshot-freedesktop.c                \
        screenshot-freedesktop.h                \
-       screenshot-gnome-shell.c                \
-       screenshot-gnome-shell.h                \
        screenshot-icon.h                       \
        screenshot-kwin.c                       \
        screenshot-kwin.h                       \
diff --git a/plug-ins/screenshot/screenshot.c b/plug-ins/screenshot/screenshot.c
index c8f205ccc2..26e575c2b9 100644
--- a/plug-ins/screenshot/screenshot.c
+++ b/plug-ins/screenshot/screenshot.c
@@ -28,7 +28,6 @@
 
 #include "screenshot.h"
 #include "screenshot-freedesktop.h"
-#include "screenshot-gnome-shell.h"
 #include "screenshot-icon.h"
 #include "screenshot-kwin.h"
 #include "screenshot-osx.h"
@@ -202,12 +201,7 @@ run (const gchar      *name,
     }
 #endif
 
-  if (! backend && screenshot_gnome_shell_available ())
-    {
-      backend      = SCREENSHOT_BACKEND_GNOME_SHELL;
-      capabilities = screenshot_gnome_shell_get_capabilities ();
-    }
-  else if (! backend && screenshot_kwin_available ())
+  if (! backend && screenshot_kwin_available ())
     {
       backend      = SCREENSHOT_BACKEND_KWIN;
       capabilities = screenshot_kwin_get_capabilities ();
@@ -397,8 +391,6 @@ shoot (GdkScreen  *screen,
 
   if (backend == SCREENSHOT_BACKEND_FREEDESKTOP)
     return screenshot_freedesktop_shoot (&shootvals, screen, image_ID, error);
-  else if (backend == SCREENSHOT_BACKEND_GNOME_SHELL)
-    return screenshot_gnome_shell_shoot (&shootvals, screen, image_ID, error);
   else if (backend == SCREENSHOT_BACKEND_KWIN)
     return screenshot_kwin_shoot (&shootvals, screen, image_ID, error);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]