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
On 4 July 2013 11:58, Laurentiu Palcu laurentiu.pa...@intel.com wrote:
+sed -i $D${datadir}/applications/shutdown.desktop -e
's#^Exec=\(.*\)#Exec=${base_sbindir}/\1#'
Doing this in postinst is pretty nasty, instead change the desktop
file to contain something like @SBIN@ and run it through
On 07/04/2013 05:58 PM, Burton, Ross wrote:
On 4 July 2013 11:58, Laurentiu Palcu laurentiu.pa...@intel.com wrote:
+sed -i $D${datadir}/applications/shutdown.desktop -e
's#^Exec=\(.*\)#Exec=${base_sbindir}/\1#'
Doing this in postinst is pretty nasty,
Nasty, in what way? How is this
On 4 July 2013 16:39, Laurentiu Palcu laurentiu.pa...@intel.com wrote:
Doing this in postinst is pretty nasty,
Nasty, in what way? How is this line different from the previous line in
the same postinstall? That one is also using sed to change 'halt' to
'reboot' for qemuarm. Is it the sed
On 04/07/13 16:39, Laurentiu Palcu wrote:
On 07/04/2013 05:58 PM, Burton, Ross wrote:
On 4 July 2013 11:58, Laurentiu Palcu laurentiu.pa...@intel.com wrote:
Even though the change you're proposing is OK, involves changing the
desktop file to add the @SBIN@ pattern and move the sed line to
On Thu, Jul 04, 2013 at 04:56:45PM +0100, Tomas Frydrych wrote:
On 04/07/13 16:39, Laurentiu Palcu wrote:
On 07/04/2013 05:58 PM, Burton, Ross wrote:
On 4 July 2013 11:58, Laurentiu Palcu laurentiu.pa...@intel.com wrote:
Even though the change you're proposing is OK, involves changing the