Clarification of Desktop file Category
authorColin Clark <colin.clark@cclark.uk>
Thu, 27 Jul 2023 13:55:15 +0000 (14:55 +0100)
committerColin Clark <colin.clark@cclark.uk>
Thu, 27 Jul 2023 13:55:15 +0000 (14:55 +0100)
- Detail that either or both of the following is required
Categories=Graphics;
Categories=X-Geeqie;

- Amend template-desktop.sh for new layout

plugins/template.desktop.in
scripts/template-desktop.sh

index 0aacce9..f1d4805 100644 (file)
@@ -2,6 +2,10 @@
 Version=1.0
 Type=Application
 
+# The Desktop file MUST contain one or both of the following:
+Categories=Graphics;
+Categories=X-Geeqie;
+
 # The name which appears in the menu:
 Name=Template
 #Name[cs]=Ĺ ablona
@@ -46,7 +50,6 @@ Icon=gtk-file
 #TryExec=command
 
 # Desktop files that are usable only in Geeqie should be marked like this:
-Categories=X-Geeqie;
 OnlyShowIn=X-Geeqie;
 
 # This is a filter - see symlink.desktop and geeqie-symlink for an example
index a3d6f3f..654e064 100755 (executable)
@@ -74,7 +74,7 @@ function get_menus()
 }
 
 /Valid sections/ {template_flag = 1; print; get_menus()}
-/This is a filter/ {template_flag = 0; print ""}
+/For other keys/ {template_flag = 0; print ""}
 (template_flag == 0) {print}
 '  "$templatepath" > "$tmp_file"