The best way to do this is to have PolicyKit hadle the permissions issue (grub-reboot can only be run as root).
I filed a bug with grub to ship a PolicyKit action file to describe the action. https://savannah.gnu.org/bugs/index.php?34326 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/165065 Title: [wishlist] Ubuntu reboot into other OS To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-session/+bug/165065/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs