You are not logged in.
So I've installed arch alongside windows and wanted to create a shortcut for rebooting straight into windows.
I know this should be possible with a .desktop file placed in /usr/share/applications but gnome somehow doesn't recognize it and doesn't create the menu entry.
[Desktop Entry]
Name=Reboot to Windows
Icon=windows-icon
Exec="/usr/bin/sudo /usr/bin/grub-reboot 2 && /usr/bin/reboot"desktop-file-validate windows.desktop returns nothing, so I guess the syntax is fine?
Permissions are -rw-r--r-- and owner is root so that should be fine as well?
Offline
You are missing the Type entry. The Exec entry should be a command, not a piece of shell code. GNOME may also require executable permission to be set for the file.
Last edited by mpan (2022-04-02 14:42:54)
Offline
And "sudo" will require a tty to ask for permissions, what's not gonna happen either. Try "pkexec"
Offline
s/will/may/
It may be set to be passwordless in “/etc/sudoers”.
Offline