Module: meta-angstrom
Branch: master
Commit: e33620491052f8b06e22aba057780ea213eff7df

Author: Koen Kooi <k...@dominion.thruhere.net>
Date:   Sat Oct 15 12:27:34 2011 +0200

angstrom gdm xfce hack: hack to make xfce the default session, the gnome one is 
hardcoded into the source

Signed-off-by: Koen Kooi <k...@dominion.thruhere.net>

---

 recipes-tweaks/gdm/angstrom-gdm-xfce-hack.bb |   18 ++++++++++++++++++
 1 files changed, 18 insertions(+), 0 deletions(-)

diff --git a/recipes-tweaks/gdm/angstrom-gdm-xfce-hack.bb 
b/recipes-tweaks/gdm/angstrom-gdm-xfce-hack.bb
new file mode 100644
index 0000000..7aac613
--- /dev/null
+++ b/recipes-tweaks/gdm/angstrom-gdm-xfce-hack.bb
@@ -0,0 +1,18 @@
+DESCRIPTION = "Set XFCE session as default in GDM config (custom.conf)"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = 
"file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58"
+
+inherit allarch
+ALLOW_EMPTY_${PN} = "1"
+
+pkg_postinst_${PN}() {
+#!/bin/sh
+grep "xfce" $D/etc/gdm/custom.conf
+if [ $? -eq 0 ]; then
+    echo "NOTE:: custom.conf already has 'xfce' configured - not patching"
+else
+       sed -i -e 's:\[daemon\]:\[daemon\]\nDefaultSession=xfce:' 
$D/etc/gdm/custom.conf
+fi
+}
+
+RDEPENDS_${PN} = "gdm"


_______________________________________________
Angstrom-distro-devel mailing list
Angstrom-distro-devel@linuxtogo.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/angstrom-distro-devel

Reply via email to