Adding --class to submenu label

Asked by paul on 2014-03-26

I have been designing grub2 themes and have hit an issue with the submenu label. In order to associate an icon with the submenu item, I need to add a class to the submenu label, in this case "--class submenu". This allows grub2 to show an icon with the same filename, i.e. submenu.png.
I cannot find a way to add the class in Grub Customizer itself. When I add it to the 10_linux script, and run update-grub, the class is added okay. However, when I use the proxy script, the class variable is not passed on. Is this a limitation of the proxy program - or am I missing something? If this is an issue with the proxy program, is it possible to fix it?

TIA.

Paul

Question information

Language:
English Edit question
Status:
Answered
For:
Grub Customizer Edit question
Assignee:
No assignee Edit question
Last query:
2014-03-26
Last reply:
2014-03-26

Yes. Currently it's not possible to modify this information. It is preserved at normal entries, but at submenus it's not, because they are handled differently.

It is fixable, but needs some larger changes. I'll include this functionality into the next release (with gui to modify these params).

paul (phaenze) said : #2

Thanks for the quick response. I'll look forward to it.

Paul

Can you help with this problem?

Provide an answer of your own, or ask paul for more information if necessary.

To post a message you must log in.