How to shutdown on app close
Chris Mohler
cr33dog at gmail.com
Fri Jul 24 17:55:09 UTC 2009
On Fri, Jul 24, 2009 at 11:51 AM, Florian Diesch<diesch at spamfence.net> wrote:
> Liam Proven <lproven at gmail.com> writes:
>
>> I'm setting up an Ubuntu box which will run a single full-screen app,
>> all the time, and nothing else. I have set it up to automatically log
>> in and then automatically start the app, but I am missing one step,
>> the final one.
>>
>> When the user quits the app, I want the machine to shut down.
>>
>> Is there a straightforward way to accomplish this?
>>
>> All I could think of was that rather than run my app, I'd run a
>> script, and the next line would say "shutdown now" or "telinit 0". The
>> snag is, I think that requires root privileges & I don't want them to
>> have to enter a password just to quit!
>
> See <https://help.ubuntu.com/community/Sudoers> for how to configure
> sudo to not require a password.
And also this page near the bottom for a kludge:
http://ubuntuforums.org/archive/index.php/t-543392.html
Not recommended for any multi-user setup, but in your case it might be OK...
Chris
More information about the ubuntu-users
mailing list