navit-project.org

forum for navit navigation tool
It is currently 19 Nov 2017, 21:37
View unanswered posts | View active topics


All times are UTC


Forum rules


Feel free to ask anything here related to the installation and configuration of Navit.

Some notes before your first post:

Please provide as much informations as possible:



Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: How to shutdown computer
PostPosted: 01 Jun 2016, 03:02 
Offline

Joined: 01 May 2016, 18:04
Posts: 9
On my screen, there is a "Quit" icon. Instead of closing the Navit program, I want to change this to shutdown the Raspberry Pi that it is installed on.

Basically, I am wanting to execute a command like "sudo shutdown 0".

Any way to do this in the navit.xml config file?

Thanks,
eala


 Profile  
 
 Post subject: Re: How to shutdown computer
PostPosted: 01 Jun 2016, 20:22 
Offline

Joined: 09 Jul 2013, 17:41
Posts: 82
Hi!

Try to replace onclick='quit()' with onclick='navit.spawn("sudo","shutdown","-h","now")' in navit.xml

tryagain


 Profile  
 
 Post subject: Re: How to shutdown computer
PostPosted: 02 Jun 2016, 01:02 
Offline

Joined: 01 May 2016, 18:04
Posts: 9
Rock on. That worked perfectly.

Thanks!


 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: Majestic-12 [Bot] and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Silver Orange 2.0.6 for IPB Designed by Skins and Hosting
Converted for phpBB3, based on Royal Blue template by BigB © 2007 2008 AEON KINGS