Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ubuntu 24.04 #7

Merged
merged 13 commits into from
Aug 4, 2024
Merged

Ubuntu 24.04 #7

merged 13 commits into from
Aug 4, 2024

Conversation

mendhak
Copy link
Owner

@mendhak mendhak commented Aug 3, 2024

I found a bug where the menu item would activate (click) on hover. This is because a list of submenu items of length 0 was being added. So I think GTK was 'activating' the menu to show the submenu items, but I had already attached the reboot command there.

Anyway I've added an if statement. Now it should behave itself.

Issue #2 #6


Ran into some problems.

❌ The /boot/grub/grub.cfg file is no longer readable on Ubuntu 24.04, so running the script gets access denied on Ubuntu 24.04. I'm going to have to find a way to read this file or run this script as root? I definitely don't want to modify its permissions.

I modified the .desktop file and put pkexec in front of grub-reboot-picker. I used polkit to allow grub-reboot-picker. Wish there were a narrower way of allowing this, just access to one specific file. I think polkit isn't meant for supernarrow access though.

src/grub-reboot-picker.py Outdated Show resolved Hide resolved
@mendhak mendhak merged commit 1a23ac0 into master Aug 4, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant