Skip to content

open files on different platforms #10

Description

@bzz

Thank you for sharing the code for this tool!

Right now, it includes a hard-coded calls to linux-specific tool subprocess.call(('xdg-open', XXX)).

It would be nice to have other platforms supposted (e.g. mac OS) by refactoring that to the logic similar to https://golang.org/src/cmd/internal/browser/browser.go that calls the right tool on each platform.

Otherwise, right now, on mac OS the tool works, but one can not open any file as there is no xdg-open binary.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions