Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
educare:zenity [2017/06/30 18:53]
profpro created
educare:zenity [2018/04/25 07:55] (current)
Line 11: Line 11:
 else else
     exit     exit
 +fi
 +</​code>​
 +
 +un programma simile si chiama //​xmessage//​
 +
 +
 +<code bash>
 +
 +#!/bin/sh
 +
 +risposta=$(xmessage ​ "Vuoi davvero spegnere il computer? " -buttons si,no -print)
 +if [ $risposta = "​si"​ ]
 +then
 +    obsession-exit -p
 fi fi
 </​code>​ </​code>​
  • educare/zenity.txt
  • Last modified: 2018/04/25 07:55
  • (external edit)