that’s because -r is a flag to be used in the terminal.
the proper way to test if the bug is resolved, is to navigate to /boot/system/bin with tracker, and double click the shutdown binary and see if it shuts down without error.
Yes, the Shutdown binary (/boot/system/bin) shuts down without error upon clicking in r38903 as does the symlink that I made.
However, based on your comment regarding my reboot attempt, it’s impossible in Haiku to create a symlink to reboot simply because there is no reboot binary in Haiku.
Is this correct?
(It’s really no big deal as the reboot script that you suggested some time ago works fine. But I’m just curious).
Yes you need to make a bash script or try yab to make a shutdown window for you:
Something like this:
#!/bin/sh
if [ “$(alert “Shutdown Script Example” “shutdown” “reboot”)” == “reboot” ]; then
shutdown -r
else
shutdown
fi
Right click on the file and then select “get info”. activate the permissions using the up-arrow and set permission to execute for all (user, group, other).
Once you have saved this file (it’s better to save it in your home/config/bin) and added a icon (google for a shutdown.svg image) as lelldorin described, you can add a deskbar replicant too by saving another script to /boot/home/config/boot/launch, this should contain a similar code
this time there is no need for an icon but you have to mark it as executable like it was done with the previous file, once this script has been loaded a replicant should appear on deskbar, a primary mouse button click open the alert script, the secondary mouse button click shows a menu
sorry for this unsolicited reply, this seems to be a boring holiday morning