Package: menu-xdg
Version: 0.5
Severity: wishlist
Tags: patch

Hi,

This patch goes with the one in #601139 against the devscripts package.
Please see there for the full rationale.

In short: I think it would make sense to make it so that menu entries
which originally are generated from .desktop files are (by default) not
converted back to .desktop files again; this adds little value (since
the original .desktop file contains more information, anyway). This
patch will make the menu method still generate the .desktop file, but
with an added line of 'OnlyShowIn=Debian', making sure it will not show
up by default unless overridden somewhere.

It might be better to just not generate the file at all unless the menu
method is modified, or something, but I couldn't figure out how to do
that.

-- 
The biometric identification system at the gates of the CIA headquarters
works because there's a guard with a large gun making sure no one is
trying to fool the system.
  http://www.schneier.com/blog/archives/2009/01/biometrics.html
diff -ruN menu-xdg-0.5/xdg-desktop-entry-spec-apps menu-xdg-0.5.mine/xdg-desktop-entry-spec-apps
--- menu-xdg-0.5/xdg-desktop-entry-spec-apps	2010-01-17 15:06:31.000000000 +0100
+++ menu-xdg-0.5.mine/xdg-desktop-entry-spec-apps	2010-10-23 19:01:12.166078914 +0200
@@ -34,7 +34,8 @@
 	ifnempty(icon(),"Icon=" icon() "\n")
 	"Exec=" $command "\n"
 	"Terminal=" $terminal "\n"
-	"Categories=X-Debian" replacewith($basesection,"/ ","--") ";\n";
+	"Categories=X-Debian" replacewith($basesection,"/ ","--") ";\n"
+	ifeq($xdg, "false", "OnlyShowIn=Debian");
 
 supported;
  x11 = AppEntry("false");

Reply via email to