git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
From: Junio C Hamano <gitster@pobox.com>
To: Pat Thoyts <patthoyts@gmail.com>
Cc: Stefan Haller <stefan@haller-berlin.de>,
	Git Mailing List <git@vger.kernel.org>
Subject: Re: [PATCH] git-gui: bring Wish process to front on Mac
Date: Thu, 06 Jun 2013 11:15:31 -0700	[thread overview]
Message-ID: <7vk3m7yukc.fsf@alter.siamese.dyndns.org> (raw)
In-Reply-To: <CABNJ2G+h3zh+=wLA0KHjUn8TsfhqUK1Kn-1_=6hnXVRJUPhuuA@mail.gmail.com> (Pat Thoyts's message of "Thu, 6 Jun 2013 15:09:32 +0100")

Pat Thoyts <patthoyts@gmail.com> writes:

> Seems fine to me. I can't test this as I have no access to this
> platform. Possibly you should run this in a catch statement so it can
> ignore any errors and I would tend to use the 'auto_execok' command to
> ensure that osascript actually exists. Something like
>
>   set arg [format {tell application......}]
>   catch {exec {*}[auto_execok osascript] -e $arg [pid]}
>
> but possibly this is guaranteed to exist on all macs which would make
> the above redundant. What I'm thinking is you dont want the app to
> exit just because something goes wrong in this call.

Sounds like a sensible concern; gitk in v1.8.3 has it without catch
so we may see failure reports from OSX users soonish, in which case
both this patch and gitk need to be updated for it.

Stefan (as your name appears in 76bf6ff93e, I am assuming that you
were the OSX-osascript guru in that commit) could you keep an eye on
the list traffic to see if users of latest gitk have issues with
that change, please?

Thanks.

  parent reply	other threads:[~2013-06-06 18:15 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-06  8:17 [PATCH] git-gui: bring Wish process to front on Mac Stefan Haller
2013-06-06 14:09 ` Pat Thoyts
2013-06-06 17:12   ` Stefan Haller
2013-06-07 21:56     ` [PATCH v2] " Stefan Haller
2013-06-14 17:54       ` Junio C Hamano
2013-06-15 23:07         ` Pat Thoyts
2013-06-06 18:15   ` Junio C Hamano [this message]
2013-06-07 21:58     ` [PATCH] " Stefan Haller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: http://vger.kernel.org/majordomo-info.html

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7vk3m7yukc.fsf@alter.siamese.dyndns.org \
    --to=gitster@pobox.com \
    --cc=git@vger.kernel.org \
    --cc=patthoyts@gmail.com \
    --cc=stefan@haller-berlin.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).