From d5c785d4c650c76279d49390adc16b6b7919771f Mon Sep 17 00:00:00 2001 From: Eric Koegel Date: Fri, 26 Sep 2014 20:11:10 +0300 Subject: [PATCH] Add appdata file Based on the xfpm appdata, the spec is available at: http://www.freedesktop.org/software/appstream/docs/sect-Metadata-Application.html --- .gitignore | 1 + Makefile.am | 13 +++++++++++-- po/POTFILES.in | 1 + src/xfce4-screenshooter.appdata.xml.in | 35 ++++++++++++++++++++++++++++++++++ 4 files changed, 48 insertions(+), 2 deletions(-) create mode 100644 src/xfce4-screenshooter.appdata.xml.in diff --git a/.gitignore b/.gitignore index bb7481a..ef71331 100644 --- a/.gitignore +++ b/.gitignore @@ -37,3 +37,4 @@ Makefile /src/xfce4-screenshooter /src/xfce4-screenshooter.desktop* /stamp-h1 +src/xfce4-screenshooter.appdata.xml diff --git a/Makefile.am b/Makefile.am index 86693ea..bb9edb0 100644 --- a/Makefile.am +++ b/Makefile.am @@ -158,6 +158,13 @@ panel_desktop_in_files = panel-plugin/screenshooter.desktop.in panel_desktop_DATA = $(panel_desktop_in_files:.desktop.in=.desktop) @INTLTOOL_DESKTOP_RULE@ +# appdata file for the application +@INTLTOOL_XML_RULE@ +appdatadir = $(datadir)/appdata +appdata_DATA = $(appdata_in_files:.xml.in=.xml) +appdata_in_files = src/xfce4-screenshooter.appdata.xml.in + + # Fallback icons # 48x48 icons @@ -202,7 +209,8 @@ EXTRA_DIST = \ $(app_desktop_in_in_files) \ $(panel_desktop_in_files) \ $(48icons_DATA) \ - $(scalicons_DATA) + $(scalicons_DATA) \ + $(appdata_in_files) DISTCLEANFILES = \ intltool-extract \ @@ -212,7 +220,8 @@ DISTCLEANFILES = \ $(lib_libscreenshooter_built_sources) \ lib/stamp-screenshooter-marshal.h \ $(app_desktop_DATA) $(app_desktop_in_files) \ - $(panel_desktop_DATA) + $(panel_desktop_DATA) \ + $(appdata_DATA) # Man pages dist_man_MANS = xfce4-screenshooter.1 diff --git a/po/POTFILES.in b/po/POTFILES.in index f4752a4..bac73be 100644 --- a/po/POTFILES.in +++ b/po/POTFILES.in @@ -5,3 +5,4 @@ src/main.c src/xfce4-screenshooter.desktop.in.in panel-plugin/screenshooter-plugin.c panel-plugin/screenshooter.desktop.in +src/xfce4-screenshooter.appdata.xml.in diff --git a/src/xfce4-screenshooter.appdata.xml.in b/src/xfce4-screenshooter.appdata.xml.in new file mode 100644 index 0000000..85dd7b0 --- /dev/null +++ b/src/xfce4-screenshooter.appdata.xml.in @@ -0,0 +1,35 @@ + + + + xfce4-screenshooter.desktop + CC-BY-3.0 + GPL-2.0+ + xfce4-screenshooter + Application and panel plugin to take screenshots + + + <_p>This application allows you to capture the entire screen, the active window + or a selected region. You can set the delay that elapses before the screenshot + is taken and the action that will be done with the screenshot: save it to a PNG + file, copy it to the clipboard, open it using another application, or host it on + ZimageZ, a free online image hosting service. + + + + + + http://docs.xfce.org/_media/apps/screenshooter/xfce4-screenshooter-dialog1.png + + + + http://goodies.xfce.org/projects/applications/xfce4-screenshooter + https://bugzilla.xfce.org/describecomponents.cgi?product=Xfce4-screenshooter + http://docs.xfce.org/apps/screenshooter/start + + xfce4-dev@xfce.org + + + xfce4-screenshooter + + + -- 2.1.1