summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYegor Yefremov <yegorslists@googlemail.com>2011-10-10 09:21:58 (GMT)
committer Peter Korsgaard <jacmet@sunsite.dk>2011-12-07 20:11:57 (GMT)
commitb87f2942f0ab9e8ee003cac08a172d2a51a3535f (patch)
tree6bab0a8951909545e05f1371f108d5d5695e688b
parenta15d47f09014441482eb97b1316f0509fd07db99 (diff)
downloadbuildroot-b87f2942f0ab9e8ee003cac08a172d2a51a3535f.tar.gz
buildroot-b87f2942f0ab9e8ee003cac08a172d2a51a3535f.tar.bz2
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 <yegorslists@googlemail.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
-rw-r--r--package/fluxbox/fluxbox.mk7
-rw-r--r--package/fluxbox/xsession2
2 files changed, 9 insertions, 0 deletions
diff --git a/package/fluxbox/fluxbox.mk b/package/fluxbox/fluxbox.mk
index 85a8eae..5a123f0 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 0000000..b51acff
--- /dev/null
+++ b/package/fluxbox/xsession
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec startfluxbox