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.pa...@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 _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core