Author larry
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.23:00:15
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1338073216.15.0.878325428161.issue3177@psf.upfronthosting.co.za>
In-reply-to
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.

What if they're using a KDE-based system?  Or XFCE?  Or xmonad?  Or qtile?
What if their preferred file browser is Midnight Commander?
What if they use Chrome?  Or Konqueror?  Or Opera?  Or Lynx?

Designing a cross-platform API based on abilities provided by only one of those platforms, then waiving your hand and saying "I'm sure the other platforms will add this functionality sometime", is poor cross-platform API design.  OS X is 11 years old, GNOME is 13, KDE is 16, and none of the above appear to be in a hurry to add this feature.  And even on Windows, which has had this feature for 17 years (IIRC it was introduced with Windows 95)... it is hardly ever used.  99.999% of the time you simply want to "open" the file using the user's preferred app.

Since Windows users already have an API to access this extra functionality on their platform (os.startfile) I assert that the cross-platform API should only expose the functionality that's available across platforms.  Hence my proposal for "execute".
History
Date User Action Args
2012-05-26 23:00:16larrysetrecipients: + larry, tebeka, pitrou, giampaolo.rodola, benjamin.peterson, eric.araujo, ganadist, Arfrever, r.david.murray, cvrebert, rosslagerwall, smarnach, Roman.Evstifeev, Hobson.Lane
2012-05-26 23:00:16larrysetmessageid: <1338073216.15.0.878325428161.issue3177@psf.upfronthosting.co.za>
2012-05-26 23:00:15larrylinkissue3177 messages
2012-05-26 23:00:15larrycreate