Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/simonlschlee/open-app
Open the default application for an url or file.
https://github.com/simonlschlee/open-app
racket racket-lang racket-language utility-function
Last synced: 5 days ago
JSON representation
Open the default application for an url or file.
- Host: GitHub
- URL: https://github.com/simonlschlee/open-app
- Owner: SimonLSchlee
- License: other
- Created: 2018-05-26T16:39:14.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-06-01T16:32:47.000Z (over 6 years ago)
- Last Synced: 2024-12-03T08:07:52.804Z (2 months ago)
- Topics: racket, racket-lang, racket-language, utility-function
- Language: Racket
- Size: 4.88 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
open-app
====This library defines a simple function open-app, which will invoke the default
application for an url or file.# Usage #
``` racket
#lang racket(require open-app)
(module+ main
(open-app "https://racket-lang.org"))
```# Notice #
The implementation is platform dependent because it uses different system
commands depending on the platform.Currently supported platforms:
* Windows (uses rackets shell-execute)
* Unix/Linux (uses xdg-open command)
* Mac (uses open command, work in progress, needs testing)