This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Hobson.Lane
Recipients Arfrever, Hobson.Lane, Roman.Evstifeev, benjamin.peterson, cvrebert, eric.araujo, ganadist, giampaolo.rodola, pitrou, r.david.murray, rosslagerwall, smarnach, vstinner
Date 2012-04-23.17:35:04
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1335202505.08.0.779090262252.issue3177@psf.upfronthosting.co.za>
In-reply-to
Content
I'll be happy to code, test, and use the new ____.____() function wherever it ends up and whatever it is named... but...

> Initially this issue was about implementing a startfile-equivalent on
> posix.  But if you have to add a gui option to startfile to not lanuch > a GUI, and your real goal is a consistent way to launch non-gui 
> programs on posix

Actually, my real goal was a consistent way of launching any editor or viewer (or even interpreter) on any platform with graceful fallback from the caller's preferred action to the others. I wanted my application that called the new idiomatic standard library function to do something  smarter (in my mind) than what OSes do by default and more consistent and robust than what hg and bzr do by design. Perhaps the fallback should only be within the read/write/execute "silos", but that should be configurable as well, defaulting to do the safe thing (fallback within editors or within viewers only).

    GUI viewer (IE, then Firefox, then Chrome, then Safari)
    GUI editor (notepad, then ...)
    shell editor ($EDITOR, then vim, then vi, then nano, etc)
    shell viewer (less, then more, then cat)

Obviously this isn't feasible. At least not for my first patch.
History
Date User Action Args
2012-04-23 17:35:05Hobson.Lanesetrecipients: + Hobson.Lane, pitrou, vstinner, giampaolo.rodola, benjamin.peterson, eric.araujo, ganadist, Arfrever, r.david.murray, cvrebert, rosslagerwall, smarnach, Roman.Evstifeev
2012-04-23 17:35:05Hobson.Lanesetmessageid: <1335202505.08.0.779090262252.issue3177@psf.upfronthosting.co.za>
2012-04-23 17:35:04Hobson.Lanelinkissue3177 messages
2012-04-23 17:35:04Hobson.Lanecreate