692d77904d
- Add LICENSE and LICENSE_FILE - Register missing dependencies - Switch to USES=localbase framework - Add NLS option - Add INTEL_FIX option to fix garbled screenshot when 3D hardware acceleration is enabled via x11-drivers/xf86-video-intel port - Provide more elaborate port description and add WWW line in pkg-descr Changelog: https://gitlab.gnome.org/GNOME/gnome-screenshot/blob/master/NEWS PR: 229061 Submitted by: cpm Reviewed by: Ting-Wei Lan <lantw44@gmail.com> Approved by: gnome (maintainer timeout, 2 weeks)
20 lines
707 B
Text
20 lines
707 B
Text
--- src/screenshot-utils.c.orig 2016-07-11 14:55:18 UTC
|
|
+++ src/screenshot-utils.c
|
|
@@ -630,6 +630,9 @@ screenshot_get_pixbuf (GdkRectangle *rec
|
|
filename);
|
|
}
|
|
|
|
+ if (!g_strcmp0 (g_getenv ("XDG_CURRENT_DESKTOP"), "GNOME"))
|
|
+ screenshot = screenshot_fallback_get_pixbuf (rectangle);
|
|
+ else {
|
|
connection = g_application_get_dbus_connection (g_application_get_default ());
|
|
g_dbus_connection_call_sync (connection,
|
|
"org.gnome.Shell.Screenshot",
|
|
@@ -659,6 +662,7 @@ screenshot_get_pixbuf (GdkRectangle *rec
|
|
|
|
screenshot = screenshot_fallback_get_pixbuf (rectangle);
|
|
}
|
|
+ }
|
|
|
|
g_free (path);
|
|
g_free (tmpname);
|