When I look in boot/home/config/boot/UserShutdownScript there isn't one there. Is it as easy as using style edited and nameing the file ShutdownScript.sh? How do I enter a command to shut down a specific program?
It gives you the file name in the userguide: /boot/home/config/boot/UserShutdownScript
This is executed as a shell script. You can create/edit it with any editor you want.
If you want to send commands to a specific application you'll want to use the 'hey' program
For example to quit an app named foo: hey foo QUIT
There are various documents floating around talking about using hey.
Comments
Re: Shutdown Script
http://haiku-os.org/docs/userguide/en/bash-scripting.html#user-scripts
Re: Shutdown Script
When I look in boot/home/config/boot/UserShutdownScript there isn't one there. Is it as easy as using style edited and nameing the file ShutdownScript.sh? How do I enter a command to shut down a specific program?
Dave
Re: Shutdown Script
It gives you the file name in the userguide: /boot/home/config/boot/UserShutdownScript
This is executed as a shell script. You can create/edit it with any editor you want.
If you want to send commands to a specific application you'll want to use the 'hey' program
For example to quit an app named foo: hey foo QUIT
There are various documents floating around talking about using hey.
Re: Shutdown Script
The Shutdown Script does not seem to get executed on shutdown. I tried it and it does not seem to work (it didn't work in A2 either).
Did anyone get it to work on A3?
Thanks,
hey68you
Re: Shutdown Script
Yup. Guess it's still on the todo list.
http://dev.haiku-os.org/ticket/4444
Re: Shutdown Script
I can make the "hey BeDock quit" command work from a terminal window. But, alas the UshershutDown script isn't running. Bummer.