[OE-core] [PATCH v2 5/5] shutdown-desktop: give entire path in Exec field
Laurentiu Palcu
laurentiu.palcu at intel.com
Thu Jul 4 10:58:04 UTC 2013
A normal user does not have /sbin in its PATH, by default, so having the
entire path here allows the correct execution when run as regular user.
[YOCTO #4345]
Signed-off-by: Laurentiu Palcu <laurentiu.palcu at intel.com>
---
.../shutdown-desktop/shutdown-desktop.bb | 2 ++
1 file changed, 2 insertions(+)
diff --git a/meta/recipes-sato/shutdown-desktop/shutdown-desktop.bb b/meta/recipes-sato/shutdown-desktop/shutdown-desktop.bb
index c5096c1..9e283e4 100644
--- a/meta/recipes-sato/shutdown-desktop/shutdown-desktop.bb
+++ b/meta/recipes-sato/shutdown-desktop/shutdown-desktop.bb
@@ -18,6 +18,8 @@ pkg_postinst_${PN} () {
grep -q qemuarm $D${sysconfdir}/hostname && \
sed -i $D${datadir}/applications/shutdown.desktop -e 's/^Exec=halt/Exec=reboot/' \
|| true
+
+ sed -i $D${datadir}/applications/shutdown.desktop -e 's#^Exec=\(.*\)#Exec=${base_sbindir}/\1#'
}
inherit allarch
--
1.7.9.5
More information about the Openembedded-core
mailing list