From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1S0RAq-0008AZ-CD for mharc-grub-devel@gnu.org; Thu, 23 Feb 2012 00:25:00 -0500 Received: from eggs.gnu.org ([140.186.70.92]:49437) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S0RAn-00088M-AM for grub-devel@gnu.org; Thu, 23 Feb 2012 00:24:58 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S0RAl-0004qs-US for grub-devel@gnu.org; Thu, 23 Feb 2012 00:24:57 -0500 Received: from mail-ee0-f41.google.com ([74.125.83.41]:60615) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S0RAl-0004ql-N3 for grub-devel@gnu.org; Thu, 23 Feb 2012 00:24:55 -0500 Received: by eekc13 with SMTP id c13so315571eek.0 for ; Wed, 22 Feb 2012 21:24:54 -0800 (PST) Received-SPF: pass (google.com: domain of phcoder@gmail.com designates 10.213.3.198 as permitted sender) client-ip=10.213.3.198; Authentication-Results: mr.google.com; spf=pass (google.com: domain of phcoder@gmail.com designates 10.213.3.198 as permitted sender) smtp.mail=phcoder@gmail.com; dkim=pass header.i=phcoder@gmail.com Received: from mr.google.com ([10.213.3.198]) by 10.213.3.198 with SMTP id 6mr172392ebo.61.1329974694859 (num_hops = 1); Wed, 22 Feb 2012 21:24:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=jZPE+eeAiHcOh74YkVy0gczVCORHtEtg8J/AQ53Przs=; b=Ts/BNhFwiMWOQxhhinYd0qj3oYGXdznjDy6awBTa2/rTUzlxCwQtNlEPqdEx17PMeE ghvdnbyHDeEN3sCbM73JE6hwUF0JGEl/bBdSFMDQgFZQZcqqzJuWRaFGX9hmJZYDsP9d Cwas5my6iE+bCEm7WFs9HeKUm/BMUdMG443/U= Received: by 10.213.3.198 with SMTP id 6mr133879ebo.61.1329974694693; Wed, 22 Feb 2012 21:24:54 -0800 (PST) Received: from debian.x201.phnet (1-234.197-178.cust.bluewin.ch. [178.197.234.1]) by mx.google.com with ESMTPS id s48sm1240482eem.0.2012.02.22.21.24.52 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 22 Feb 2012 21:24:53 -0800 (PST) Message-ID: <4F45CD9F.7020408@gmail.com> Date: Thu, 23 Feb 2012 06:24:47 +0100 From: =?UTF-8?B?VmxhZGltaXIgJ8+GLWNvZGVyL3BoY29kZXInIFNlcmJpbmVua28=?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:8.0) Gecko/20120216 Icedove/8.0 MIME-Version: 1.0 To: grub-devel@gnu.org Subject: Re: The submenu command shows a text-based menu when using a GFX theme. References: <1329961829.75149.YahooMailNeo@web113502.mail.gq1.yahoo.com> In-Reply-To: <1329961829.75149.YahooMailNeo@web113502.mail.gq1.yahoo.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 74.125.83.41 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Feb 2012 05:24:58 -0000 On 23.02.2012 02:50, Towheed Mohammed wrote: > 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 What a perfect example of overengineering just to compensate for missing "export theme". I've fixed it in trunk > > to reload the theme and have a themed submenu. > > Will this be fixed in the 2.00 release? > > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > https://lists.gnu.org/mailman/listinfo/grub-devel > -- Regards Vladimir 'φ-coder/phcoder' Serbinenko