2

Is there a way in 16.04 LTS to add a custom button to the login screen that runs a bash script?

The reason I need this is for dual-booting, so I can add a button on the login screen that will switch the OS to Windows and reboot. I'm looking to add the same button on the reverse in Windows as well.

1 Answers1

0

Don't think your going to be able to add login screen buttons, so here is my answer.

If you follow the answer here :

How can I get grub2 to boot a different option only on the next boot?

You should be able to set it up so that it always boots into Ubuntu by default, then from the Ubuntu command line (once logged in) you will be able to perform a 1 time reboot into Windows using ;

grub-reboot <windows entry>

So if Windows is the 3rd entry in the grub entry (starts at 0);

grub-reboot 2

Once booted into Windows, you simply reboot as normal to boot back into Ubuntu.

Repeat as needed.

hatterman
  • 2,330