Tell Git to ignore .desktop files globally
authorDave Lambert <dave@davelambert.org>
Mon, 26 Nov 2018 12:11:40 +0000 (12:11 +0000)
committerDave Lambert <dave@davelambert.org>
Tue, 27 Nov 2018 13:23:28 +0000 (13:23 +0000)
These files are all generated by the build, with the exception of the
template.desktop file, so:

* Have Git ignore all *.desktop files.
* Rename template.desktop to template.desktop.in to
  avoid a clash with this new ignore rule.
* Remove the checked-in image-crop.desktop file, which is built
  anyway.

.gitignore
plugins/Makefile.am
plugins/image-crop/image-crop.desktop [deleted file]
plugins/template.desktop.in [moved from plugins/template.desktop with 100% similarity]
src/main.h

index af6579c..fdcda09 100644 (file)
@@ -6,6 +6,9 @@ Makefile.in
 *.rej
 *.orig
 
+# GNOME .desktop files
+*.desktop
+
 # /
 /aclocal.m4
 /autom4te.cache
@@ -32,23 +35,10 @@ Makefile.in
 /depcomp
 /auxdir
 /stamp-h1
-/geeqie.desktop
 /intltool-extract.in
 /intltool-update.in
 /intltool-merge.in
 
-# /plugins/import/
-/plugins/import/*.desktop
-
-# /plugins/rotate/
-/plugins/rotate/*.desktop
-
-# /plugins/symlink/
-/plugins/symlink/*.desktop
-
-# /plugins/ufraw/
-/plugins/ufraw/*.desktop
-
 # /po/
 /po/Makefile.in.in
 /po/POTFILES
index b0b5d65..7f86e7d 100644 (file)
@@ -1,6 +1,6 @@
 
 SUBDIRS = rotate symlink ufraw import geocode-parameters export-jpeg tethered-photography camera-import image-crop
 qq_desktoptemplatedir = $(appdir)
-qq_desktoptemplate_DATA = template.desktop
+qq_desktoptemplate_DATA = template.desktop.in
 
 EXTRA_DIST = $(qq_desktoptemplate_DATA)
diff --git a/plugins/image-crop/image-crop.desktop b/plugins/image-crop/image-crop.desktop
deleted file mode 100644 (file)
index 7501e92..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-[Desktop Entry]
-Version=1.0
-Type=Application
-Name=Image crop
-
-# Requires ImageMagick and exiftools
-
-Exec=geeqie-image-crop %f
-
-# Desktop files that are usable only in Geeqie should be marked like this:
-Categories=X-Geeqie;
-OnlyShowIn=X-Geeqie;
-
-# It can be made verbose
-#X-Geeqie-Verbose=true
-
-Icon=geeqie
index 1048fd2..979bb79 100644 (file)
 #include "debug.h"
 #include "options.h"
 
-#define DESKTOP_FILE_TEMPLATE GQ_APP_DIR "/template.desktop"
+#define DESKTOP_FILE_TEMPLATE GQ_APP_DIR "/template.desktop.in"
 
 #define TIMEZONE_DATABASE "timezone21.bin"