openbsd-ports/x11/xfce4/xfce-utils/patches/patch-scripts_xinitrc_in_in
landry 8446e34c1a Update to xfce-utils 4.8.0.
Add a temporary workaround to install the fd.o menu file to
~/.config/menus/ at startup, i'm working on a fix with upstream (#6796)
2011-01-18 20:25:56 +00:00

19 lines
980 B
Plaintext

$OpenBSD: patch-scripts_xinitrc_in_in,v 1.1 2011/01/18 20:25:56 landry Exp $
workaround until http://bugzilla.xfce.org/show_bug.cgi?id=6796 is fixed
--- scripts/xinitrc.in.in.orig Tue Jan 18 16:14:35 2011
+++ scripts/xinitrc.in.in Tue Jan 18 16:23:16 2011
@@ -30,6 +30,13 @@ if test "x$XDG_CONFIG_HOME" = "x" ; then
fi
[ -d "$XDG_CONFIG_HOME" ] || mkdir "$XDG_CONFIG_HOME"
+# copy the sample applications.menu to XDG_CONFIG_HOME/menus
+[ -d "$XDG_CONFIG_HOME/menus" ] || mkdir "$XDG_CONFIG_HOME/menus"
+
+if [ -f "@_sysconfdir_@/xdg/menus/${XDG_MENU_PREFIX}applications.menu" -a ! -f "$XDG_CONFIG_HOME/menus/${XDG_MENU_PREFIX}applications.menu" ]; then
+ cp "@_sysconfdir_@/xdg/menus/${XDG_MENU_PREFIX}applications.menu" "$XDG_CONFIG_HOME/menus/"
+fi
+
# $XDG_CACHE_HOME defines the base directory relative to which user specific
# non-essential data files should be stored. If $XDG_CACHE_HOME is either not
# set or empty, a default equal to $HOME/.cache should be used.