Set XDG_MENU_PREFIX in startxfce4 to 'xfce-', for a better compliance with

fd.o menu spec. Prompted by & after discussion with aja@.
Also reported upstream as http://bugzilla.xfce.org/show_bug.cgi?id=5980
This commit is contained in:
landry 2009-11-14 16:43:27 +00:00
parent ac7d104490
commit ffe06e820d
2 changed files with 19 additions and 2 deletions

View File

@ -1,9 +1,9 @@
# $OpenBSD: Makefile,v 1.26 2009/08/11 08:38:41 ajacoutot Exp $ # $OpenBSD: Makefile,v 1.27 2009/11/14 16:43:27 landry Exp $
COMMENT= Xfce4 essential utilities and scripts COMMENT= Xfce4 essential utilities and scripts
XFCE_PROJECT= xfce-utils XFCE_PROJECT= xfce-utils
PKGNAME= ${DISTNAME}p0 PKGNAME= ${DISTNAME}p1
# GPLv2 # GPLv2
PERMIT_DISTFILES_CDROM= Yes PERMIT_DISTFILES_CDROM= Yes

View File

@ -0,0 +1,17 @@
$OpenBSD: patch-scripts_startxfce4_in,v 1.1 2009/11/14 16:43:27 landry Exp $
set XDG_MENU_PREFIX to xfce- so that applications looking
for the xfce xdg-compliant menu have another chance to find it.
--- scripts/startxfce4.in.orig Sat Nov 14 14:24:41 2009
+++ scripts/startxfce4.in Sat Nov 14 14:25:10 2009
@@ -34,6 +34,11 @@ else
fi
export XDG_DATA_DIRS
+if test "x$XDG_MENU_PREFIX" = "x"
+then
+ export XDG_MENU_PREFIX="xfce-"
+fi
+
if test "x$DISPLAY" = "x"
then
echo "$0: Starting X server"