Skip to contentSkip to conversation

add autostart PACKAGE to paroli recipe

PATCH NAK Angus Ainslie 3 participants 3 messages Feb 19, 2009 – Feb 20, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 add autostart PACKAGE to paroli recipe

---
 packages/openmoko-projects/paroli_git.bb |   21 ++++++++++++++++++++-
 1 files changed, 20 insertions(+), 1 deletions(-)                    
(quoted diff) +0 -0

b/packages/openmoko-projects/paroli_git.bb
index 783ffd5..12b59e1
100644
---
a/packages/openmoko-projects/paroli_git.bb
+++
b/packages/openmoko-projects/paroli_git.bb
@@ -2,13 +2,15 @@ DESCRIPTION =
"Paroli"
SECTION =
"x11"
LICENSE =
"GPL"
PV = "0.2.1+gitr
${SRCREV}"
-PR = "r0"
+PR = "r1"

SRC_URI = "git://git.paroli-project.org/paroli.git;protocol=http" S = "${WORKDIR}/git"

inherit distutils

+PACKAGES += "${PN}-autostart"
+
RDEPENDS = "\
python-datetime \
python-subprocess \
@@ -17,4 +19,21 @@ RDEPENDS = "\
python-pygobject \
"

+do_install_append() {

+       # install paroli theme
+       mkdir -p ${D}/home/root/.e/e/config/illume/
+       install ${S}/data/module.illume.cfg
${D}/home/root/.e/e/config/illume/
+       install ${S}/data/e.cfg ${D}/home/root/.e/e/config/illume/
+       mkdir -p ${D}/home/root/.e/e/themes
+       install ${S}/data/illume.edj ${D}/home/root/.e/e/themes
+
+       #install autostart
+       mkdir -p ${D}/etc/X11/Xsession.d/
+       echo "#!/bin/sh" > ${D}/etc/X11/Xsession.d/80paroli
+       echo "export DISPLAY=:0" >> ${D}/etc/X11/Xsession.d/80paroli
+       echo "exec /usr/bin/paroli-launcher" >>

${D}/etc/X11/Xsession.d/80paroli
+ chmod a+x ${D}/etc/X11/Xsession.d/80paroli
+}
+
FILES_${PN} += "${sysconfdir}/dbus-1 ${sysconfdir}/paroli ${datadir}"
+FILES_${PN}-autostart += "/etc/X11/Xsession.d/80paroli /home/root/.e" --
1.5.6.5

#1 lore raw

Review

Quoted 6 lines · Angus Ainslie
(quoted diff) +2 -0
+       mkdir -p ${D}/home/root/.e/e/config/illume/
+       install ${S}/data/module.illume.cfg

${D}/home/root/.e/e/config/illume/

(quoted diff) +3 -0
+       install ${S}/data/e.cfg ${D}/home/root/.e/e/config/illume/
+       mkdir -p ${D}/home/root/.e/e/themes
+       install ${S}/data/illume.edj ${D}/home/root/.e/e/themes

NACK, a package is NEVER EVER allowed to touch /home/*, NEVER. Caps used to get the point accross.

regards,

Koen

#2 lore raw
Quoted 10 lines · On Thursday 19 of February 2009 22:20:29 Koen Kooi wrote:

Review

Quoted 6 lines · Angus Ainslie
(quoted diff) +2 -0
+       mkdir -p ${D}/home/root/.e/e/config/illume/
+       install ${S}/data/module.illume.cfg

${D}/home/root/.e/e/config/illume/

(quoted diff) +3 -0
+       install ${S}/data/e.cfg ${D}/home/root/.e/e/config/illume/
+       mkdir -p ${D}/home/root/.e/e/themes
+       install ${S}/data/illume.edj ${D}/home/root/.e/e/themes

NACK, a package is NEVER EVER allowed to touch /home/*, NEVER. Caps used to get the point accross.

Agreed with Koen - $HOME can be on unavailable disc or on other place then /home/root/ (or other user can be used).

Regards,

Signature · 3 lines
JID:      [email protected]
Website:  http://marcin.juszkiewicz.com.pl/
LinkedIn: http://www.linkedin.com/in/marcinjuszkiewicz