diff --git a/README.md b/README.md index d2994f8..36787fd 100644 --- a/README.md +++ b/README.md @@ -61,10 +61,10 @@ Clone this repo, then run the python script. ``` cd src -./grub-reboot-picker.py +sudo ./grub-reboot-picker.py ``` - +Sudo is required here because grub.cfg may not be readable (0600 permission) ## Building a distributable diff --git a/com.mendhak.grubrebootpicker.desktop b/com.mendhak.grubrebootpicker.desktop index 694d44c..a63be43 100644 --- a/com.mendhak.grubrebootpicker.desktop +++ b/com.mendhak.grubrebootpicker.desktop @@ -3,7 +3,7 @@ Type=Application Name=Grub Reboot Picker GenericName=Grub Reboot Picker Comment=Pick an OS to reboot into -Exec=/usr/sbin/grub-reboot-picker +Exec=pkexec /usr/sbin/grub-reboot-picker Terminal=false Icon=un-reboot Keywords=reboot;grub;restart;OS;windows;ubuntu; diff --git a/com.mendhak.grubrebootpicker.policy b/com.mendhak.grubrebootpicker.policy index bb589b6..9b9baf3 100644 --- a/com.mendhak.grubrebootpicker.policy +++ b/com.mendhak.grubrebootpicker.policy @@ -39,4 +39,16 @@ /usr/sbin/shutdown false + + Run grub-reboot-picker + Run grub-reboot-picker so it can read grub.cfg + un-reboot + + yes + yes + yes + + /usr/sbin/grub-reboot-picker + false + \ No newline at end of file