ubuntu-users@lists.ubuntu.com
[Top] [All Lists]

Re: How to shutdown on app close

Subject: Re: How to shutdown on app close
From: Chris Mohler
Date: Fri, 24 Jul 2009 12:55:09 -0500
On Fri, Jul 24, 2009 at 11:51 AM, Florian Diesch<diesch@xxxxxxxxxxxxx> wrote:
> Liam Proven <lproven@xxxxxxxxx> 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

-- 
ubuntu-users mailing list
ubuntu-users@xxxxxxxxxxxxxxxx
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-users

<Prev in Thread] Current Thread [Next in Thread>