From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Bavier Subject: Re: [UX] real names exposed Date: Wed, 31 Aug 2016 18:33:53 -0500 Message-ID: References: <147266794967.23966.13712862947716543821@what> <20160831231110.GB18814@jasmine> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51216) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bfFZ9-00029a-Iz for help-guix@gnu.org; Wed, 31 Aug 2016 20:09:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bfFZ5-0004My-Ar for help-guix@gnu.org; Wed, 31 Aug 2016 20:09:10 -0400 Received: from smtp14.openmailbox.org ([62.4.1.48]:58059) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bfFZ5-0004Mm-1C for help-guix@gnu.org; Wed, 31 Aug 2016 20:09:07 -0400 In-Reply-To: <20160831231110.GB18814@jasmine> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: Leo Famulari Cc: help-guix@gnu.org, Help-Guix On 2016-08-31 18:11, Leo Famulari wrote: > On Wed, Aug 31, 2016 at 02:25:49PM -0400, Troy Sankey wrote: >> I understand why this happens: >> >> % khal --help >> Usage: .khal-real [OPTIONS] COMMAND [ARGS]... >> [...] >> >> but I think it sorta sucks for user experience. Just thought I'd >> point this >> out, and I was wondering if there were any ideas to address this. >> >> Specifically, argv[0] references the name of the "real" executable, >> rather than >> the guix wrapper. This is almost always benign, but it looks ugly in >> help >> menus. > > I wonder if the Khal author (Christian) intends for users to rename the > executable. Otherwise, why use argv[0]? Is it some side-effect of a > documentation tool used by Khal? > > I would understand if khal and ikhal were the same executable, and > behavior was changed based on argv[0], but that's not the case. > > It does look ugly. It's not just khal. Most other executables and scripts that reference argv[0] or $0 end up with the *=real string. In our wrapper scripts, we pass -a to exec, which is supposed to address this issue, but for some reason it seems ineffective. `~Eric -- `~Eric