All of lore.kernel.org
 help / color / mirror / Atom feed
* The submenu command shows a text-based menu when using a GFX theme.
@ 2012-02-23  1:50 Towheed Mohammed
  2012-02-23  5:24 ` Vladimir 'φ-coder/phcoder' Serbinenko
  0 siblings, 1 reply; 12+ messages in thread
From: Towheed Mohammed @ 2012-02-23  1:50 UTC (permalink / raw)
  To: grub-devel@gnu.org

If a gfx theme is being used and the submenu command is used to show a submenu, the submenu does not use the gfx theme.  Instead a text-based menu is shown.  The only way a regular user can workaround this at the moment is to reload the theme after the submenu menuentry item is selected.

In Ubuntu's (about the only distro that uses the submenu command at this time) use of the submenu in 10_linux:

  if [ "$list" ] && ! $in_submenu; then
    in_submenu=:
  fi

A regular user must patch 10_linux thus:

  if [ "$list" ] && ! $in_submenu; then
    echo "submenu \"Previous Linux versions\" --class submenu {"
        if [ "x$GRUB_THEME" != x ] && [ -f "$GRUB_THEME" ] \
            && is_path_readable_by_grub "$GRUB_THEME"; then
            prepare_grub_to_access_device `${grub_probe} --target=device "$GRUB_THEME"`
            cat << EOF
set theme=(\$root)`make_system_path_relative_to_its_root $GRUB_THEME`
EOF
        fi
    in_submenu=:
  fi

to reload the theme and have a themed submenu.

Will this be fixed in the 2.00 release?



^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2012-02-26 17:31 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-23  1:50 The submenu command shows a text-based menu when using a GFX theme Towheed Mohammed
2012-02-23  5:24 ` Vladimir 'φ-coder/phcoder' Serbinenko
2012-02-24  1:24   ` Towheed Mohammed
2012-02-24  7:44     ` Vladimir 'φ-coder/phcoder' Serbinenko
2012-02-24 22:50       ` Towheed Mohammed
2012-02-24 23:03         ` Vladimir 'φ-coder/phcoder' Serbinenko
2012-02-26  2:18           ` Towheed Mohammed
2012-02-26  9:27             ` Vladimir 'φ-coder/phcoder' Serbinenko
2012-02-26 16:20               ` Towheed Mohammed
2012-02-26 16:50                 ` Bruce Dubbs
2012-02-26 17:02                 ` Vladimir 'φ-coder/phcoder' Serbinenko
2012-02-26 17:31                   ` Towheed Mohammed

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.