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.

Title: os.startfile implementation for other OS'es besides Windows
Type: enhancement Stage: resolved
Components: Library (Lib) Versions: Python 3.6
Status: closed Resolution: duplicate
Dependencies: Superseder: Add
View: 3177
Assigned To: Nosy List: Elizacat, r.david.murray
Priority: normal Keywords:

Created on 2015-11-24 23:46 by Elizacat, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Messages (3)
msg255306 - (view) Author: Elizabeth Myers (Elizacat) * Date: 2015-11-24 23:46
os.startfile can be implemented on other OS'es besides Windows relatively easily (although the operation parameter should probably be limited to Windows; it can be implemented elsewhere, but is probably not worth the trouble).

On Unix-like operating systems besides OS X, an attempt to use xdg-open can be used and will attempt to open the file in a chosen program; this is the standard open utility. See also and (not specific to ArchLinux).

On OS X, open can be used, with similar results to xdg-open (in fact, xdg-open seems inspired by it). See also
msg255307 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2015-11-24 23:57
Duplicate of Issue 3177, which has quite a bit of discussion and some patch proposals.  You might want to add yourself as nosy to that issue and see what you think of the proposals (I did not read through it to see what the status is...there hasn't been any activity on it for a long time, so it is ripe for someone new to pick it up and carry it forward).
msg255311 - (view) Author: Elizabeth Myers (Elizacat) * Date: 2015-11-25 00:21
I'm not going to reopen that can of worms.

Sorry to waste your time.
Date User Action Args
2022-04-11 14:58:24adminsetgithub: 69913
2015-11-25 00:21:19Elizacatsetmessages: + msg255311
2015-11-24 23:57:41r.david.murraysetstatus: open -> closed

superseder: Add

nosy: + r.david.murray
messages: + msg255307
resolution: duplicate
stage: resolved
2015-11-24 23:46:04Elizacatcreate