Why specifying the text as direct argument to menu entry not enough?
menuentry "Title" {
....
}

Sometimes, you can want to have some additional information, such as
menu entry hotkey, in the submenu title (i.e., its label in the parent
menu). This would result in cluttered menu titles.

Consider this situation:

submenu "<d> Debian Linux"       --hotkey=d { … }
submenu "<f> Fedora Workstation" --hotkey=d { … }

Main menu:               GNU GRUB  v2.xx
 ┌────────────────────────────────────────────────────────────┐

The first submenu:      <d> Debian Linux
 ┌────────────────────────────────────────────────────────────┐

That would result in “<d> Debian Linux” displayed in the menu title,
instead of only “Debian Linux”, when you can set the title manually
to precisely what you need.

Even worse situation happens when the script author tries to make some
parts of the menu entry label right-aligned etc. Example:



submenu "Debian Linux        <d>" --hotkey=d { … }
submenu "Fedora Workstation  <f>" --hotkey=d { … }

Main menu:               GNU GRUB  v2.xx
 ┌────────────────────────────────────────────────────────────┐
 ┆
The first submenu:   Debian Linux        <d>
 ┌────────────────────────────────────────────────────────────┐

_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/grub-devel

Reply via email to