Author Hobson.Lane
Recipients Arfrever, Hobson.Lane, Roman.Evstifeev, benjamin.peterson, cvrebert, eric.araujo, ganadist, giampaolo.rodola, larry, pitrou, r.david.murray, rosslagerwall, smarnach, tebeka
Date 2012-05-26.22:39:23
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <CACZ_DocVK+OX0WkQEojSp=iQ27ACOCMztDS6LWu+mz6ddw49iw@mail.gmail.com>
In-reply-to <1337990937.56.0.848497509782.issue3177@psf.upfronthosting.co.za>
Content
In Linux we could `try` nautilus then Mozilla
(file://.../containing_folder) then fall back to a shell `cd && ls` if no
browser is available, raising NotImplemented if all else fails... until
someone implements for that user's platform particulars. Likewise on OSX,
Mac, even iOS, Android, etc.

That way the API remains fixed and implementation can mature without
breaking it, as people think of or develop new cross-platform actions that
you and I can't even dream of now. A boolean `execute` flag is
unnecessarily specialized (not generalized or flexible).

--Hobson
On May 25, 2012 5:08 PM, "Larry Hastings" <report@bugs.python.org> wrote:

>
> Larry Hastings <larry@hastings.org> added the comment:
>
> > Could even add an `operation` parameter to let the caller
> > select actions,
> > [...]
> > operation in ['auto', 'run', 'edit', 'display', 'browse',
> > 'explore', 'share', 'send', 'like', 'email', 'open', 'xdg-open',
> > ...] # can be incrementally added/implemented
>
> IIRC ShellExecute on Windows has support for verbs like this.  But how
> would we implement support for "explore" / "share" / "send" / "like" on Mac
> OS X and Linux?
>
> The only flag I can think of supporting in a cross-platform way would be
> "execute=True", which on Windows would mean try the verb "run" before
> trying the default, and on OS X and Linux would mean look for the execute
> bit / the "#!" signature and run it if possible first before using
> "xdg-open".
>
> ----------
>
> _______________________________________
> Python tracker <report@bugs.python.org>
> <http://bugs.python.org/issue3177>
> _______________________________________
>
History
Date User Action Args
2012-05-26 22:39:24Hobson.Lanesetrecipients: + Hobson.Lane, tebeka, pitrou, larry, giampaolo.rodola, benjamin.peterson, eric.araujo, ganadist, Arfrever, r.david.murray, cvrebert, rosslagerwall, smarnach, Roman.Evstifeev
2012-05-26 22:39:24Hobson.Lanelinkissue3177 messages
2012-05-26 22:39:23Hobson.Lanecreate