On Tue, Nov 06, 2018 at 10:09:19AM +0000, Richard W.M. Jones wrote:
 On Mon, Nov 05, 2018 at 06:31:25PM +0100, Pino Toscano wrote:
 > +static void
 > +shutdown_clicked (GtkWidget *w, gpointer data)
 > +{
 > +  if (!is_iso_environment)
 > +    return;
 > +
 > +  sync ();
 > +  sleep (2);
 > +  ignore_value (system ("/sbin/shutdown"));
 > +}
 > +
 
 The shutdown button doesn't actually work[1].  I don't
 know why because /sbin/shutdown exists. 
Oh I see, it's because running just the shutdown command simply
schedules a shutdown in future.  You have to use ‘shutdown now’.  BTW
I don't believe it's necessary to use the full path (nor in the reboot
command either).
Rich.
-- 
Richard Jones, Virtualization Group, Red Hat 
http://people.redhat.com/~rjones
Read my programming and virtualization blog: 
http://rwmj.wordpress.com
virt-builder quickly builds VMs from scratch
http://libguestfs.org/virt-builder.1.html