From: Yegor Yefremov Date: Mon, 10 Oct 2011 09:21:58 +0000 (+0200) Subject: fluxbox: add xsession profile X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b87f2942f0ab9e8ee003cac08a172d2a51a3535f;p=buildroot.git fluxbox: add xsession profile add .xsession profile to get fluxbox being started automatically by XDM. [Peter: Only install if not available in skeleton, use install -D, Make it an executable script and don't hide it] Signed-off-by: Yegor Yefremov Signed-off-by: Peter Korsgaard --- diff --git a/package/fluxbox/fluxbox.mk b/package/fluxbox/fluxbox.mk index 85a8eae41c..5a123f0e9c 100644 --- a/package/fluxbox/fluxbox.mk +++ b/package/fluxbox/fluxbox.mk @@ -13,4 +13,11 @@ FLUXBOX_CONF_OPT = --x-includes=$(STAGING_DIR)/usr/include/X11 \ FLUXBOX_DEPENDENCIES = xlib_libX11 $(if $(BR2_PACKAGE_LIBICONV),libiconv) +define FLUXBOX_INSTALL_XSESSION_FILE + [ -f $(TARGET_DIR)/root/.xsession ] || $(INSTALL) -m 0755 -D \ + package/fluxbox/xsession $(TARGET_DIR)/root/.xsession +endef + +FLUXBOX_POST_INSTALL_TARGET_HOOKS += FLUXBOX_INSTALL_XSESSION_FILE + $(eval $(call AUTOTARGETS)) diff --git a/package/fluxbox/xsession b/package/fluxbox/xsession new file mode 100644 index 0000000000..b51acff48d --- /dev/null +++ b/package/fluxbox/xsession @@ -0,0 +1,2 @@ +#!/bin/sh +exec startfluxbox