On recent KDE, the screenshot plug-in fails with an authorization error, unless we add a desktop file with a special KDE-only desktop entry to give the permission, which seems a bit over-the-top (if we were to add a desktop file for every plug-in, and with dedicated entries to every desktop environment out there, it's never-ending). Of course, we are not against either, but nobody has contributed a patch doing this in the last year anyway. Also Méven (KDE dev) was telling us that KDE recommends to use the Freedesktop portal nowadays. So maybe let's just move on from the KDE-specific portal, just as we did recently for the GNOME portal too. This should hopefully take care of all permission issues and in the same time simplifies the code. Note that the Freedesktop API might miss some of the features (this was one of the reason we were avoiding putting it as priority implementation until now, to avoid feature regression), but the more we go, the less we have a choice. It's either this or always fighting against the current.
71 lines
1.8 KiB
Makefile
71 lines
1.8 KiB
Makefile
## Process this file with automake to produce Makefile.in
|
|
|
|
libgimpui = $(top_builddir)/libgimp/libgimpui-$(GIMP_API_VERSION).la
|
|
libgimpconfig = $(top_builddir)/libgimpconfig/libgimpconfig-$(GIMP_API_VERSION).la
|
|
libgimpwidgets = $(top_builddir)/libgimpwidgets/libgimpwidgets-$(GIMP_API_VERSION).la
|
|
libgimp = $(top_builddir)/libgimp/libgimp-$(GIMP_API_VERSION).la
|
|
libgimpcolor = $(top_builddir)/libgimpcolor/libgimpcolor-$(GIMP_API_VERSION).la
|
|
libgimpbase = $(top_builddir)/libgimpbase/libgimpbase-$(GIMP_API_VERSION).la
|
|
libgimpmath = $(top_builddir)/libgimpmath/libgimpmath-$(GIMP_API_VERSION).la
|
|
|
|
if OS_WIN32
|
|
mwindows = -mwindows
|
|
screenshot_RC = screenshot-win32-res.o
|
|
endif
|
|
|
|
AM_LDFLAGS = $(mwindows)
|
|
|
|
AM_CPPFLAGS = \
|
|
-I$(top_srcdir) \
|
|
$(GTK_CFLAGS) \
|
|
$(GEGL_CFLAGS) \
|
|
$(XFIXES_CFLAGS) \
|
|
-I$(includedir)
|
|
|
|
LDADD = \
|
|
$(libgimpui) \
|
|
$(libgimpwidgets) \
|
|
$(libgimpconfig) \
|
|
$(libgimp) \
|
|
$(libgimpcolor) \
|
|
$(libgimpmath) \
|
|
$(libgimpbase) \
|
|
$(GTK_LIBS) \
|
|
$(GEGL_LIBS) \
|
|
$(SCREENSHOT_LIBS) \
|
|
$(RT_LIBS) \
|
|
$(INTLLIBS) \
|
|
$(screenshot_RC)
|
|
|
|
libexecdir = $(gimpplugindir)/plug-ins/screenshot
|
|
|
|
libexec_PROGRAMS = screenshot
|
|
|
|
EXTRA_PROGRAMS = screenshot
|
|
|
|
screenshot_SOURCES = \
|
|
screenshot.c \
|
|
screenshot.h \
|
|
screenshot-freedesktop.c \
|
|
screenshot-freedesktop.h \
|
|
screenshot-icon.h \
|
|
screenshot-osx.c \
|
|
screenshot-osx.h \
|
|
screenshot-x11.c \
|
|
screenshot-x11.h \
|
|
screenshot-win32.rc \
|
|
screenshot-win32.c \
|
|
screenshot-win32.h \
|
|
screenshot-win32-dwm-api.h \
|
|
screenshot-win32-magnification-api.h \
|
|
screenshot-win32-resource.h
|
|
|
|
EXTRA_DIST = \
|
|
screenshot-win32-select.cur \
|
|
screenshot-win32-small.ico \
|
|
screenshot-win32.ico
|
|
|
|
if OS_WIN32
|
|
screenshot-win32-res.o: screenshot-win32.rc screenshot-win32-select.cur screenshot-win32-small.ico screenshot-win32.ico
|
|
$(WINDRES) $(srcdir)/screenshot-win32.rc screenshot-win32-res.o
|
|
endif
|