← Back to team overview

ubuntu-phone team mailing list archive

Re: how to popup a message box on screen

 

El día Saturday, December 12, 2015 a las 02:14:54AM +0100, kaabud-lp@xxxxxxxx escribió:

> >> How can I pop-up in parallel a message box on the screen with some text
> >> like "Battery drain! Re-boot NOW and re-charge!", if possible together
> >> with an OK button which fires up "sudo reboot"?
> >
> > This is an excellent question, can anybody answer it?
> >
> 
> What I do is, I have a few self written .desktop files that point to 
> self written .sh files and in the script I have something like
> 
> notify-send "Message" "Some more text"

phablet@ubuntu-phablet:~$ notify-send "Message" "Some more text"
-bash: notify-send: command not found
phablet@ubuntu-phablet:~$ sudo find / | fgrep notify-send
[sudo] password for phablet: 
phablet@ubuntu-phablet:~$

i.e. I do not have this on my OTA-8

	matthias

-- 
Matthias Apitz, ✉ guru@xxxxxxxxxxx, 🌐 http://www.unixarea.de/  ☎ +49-176-38902045


References