Is there a shutdown scipt for Haiku yet? Or,something equilivent?
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
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.
- https://www.haiku-os.org/documents/dev/using_scripting_in_haiku
- https://www.haiku-os.org/blog/darkwyrm/2011-03-16_lesson_18_application_scripting
- http://wiki.bebits.com/page/HeY
- http://www.birdhouse.org/beos/byte/08-scripting/
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
I can make the “hey BeDock quit” command work from a terminal window. But, alas the UshershutDown script isn’t running. Bummer.