{"id":16499387,"url":"https://github.com/tpapp/defaultapplication.jl","last_synced_at":"2025-03-01T18:20:54.687Z","repository":{"id":39800861,"uuid":"141026332","full_name":"tpapp/DefaultApplication.jl","owner":"tpapp","description":"Julia package for opening a file with the default application determined by the OS.","archived":false,"fork":false,"pushed_at":"2023-02-09T08:44:10.000Z","size":45,"stargazers_count":45,"open_issues_count":4,"forks_count":7,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-28T16:20:10.186Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Julia","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tpapp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-07-15T12:40:14.000Z","updated_at":"2024-12-11T07:33:43.000Z","dependencies_parsed_at":"2024-11-13T06:00:16.488Z","dependency_job_id":null,"html_url":"https://github.com/tpapp/DefaultApplication.jl","commit_stats":{"total_commits":38,"total_committers":5,"mean_commits":7.6,"dds":"0.13157894736842102","last_synced_commit":"f1187d175b75db08cd716e30d952193131593eeb"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tpapp%2FDefaultApplication.jl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tpapp%2FDefaultApplication.jl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tpapp%2FDefaultApplication.jl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tpapp%2FDefaultApplication.jl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tpapp","download_url":"https://codeload.github.com/tpapp/DefaultApplication.jl/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241405071,"owners_count":19957762,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-11T14:52:23.974Z","updated_at":"2025-03-01T18:20:54.631Z","avatar_url":"https://github.com/tpapp.png","language":"Julia","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DefaultApplication.jl\n\n![Lifecycle](https://img.shields.io/badge/lifecycle-maturing-blue.svg)\n[![build](https://github.com/tpapp/DefaultApplication.jl/workflows/CI/badge.svg)](https://github.com/tpapp/DefaultApplication.jl/actions?query=workflow%3ACI)\n[![codecov.io](http://codecov.io/github/tpapp/DefaultApplication.jl/coverage.svg?branch=master)](http://codecov.io/github/tpapp/DefaultApplication.jl?branch=master)\n\nJulia library for opening a file with the default application determined by the OS.\n\n## Motivation\n\nMany packages implement variations on the same short code snippet. This package maintains a version that can be shared or tested.\n\nThis package intends to be very lightweight, and has no dependencies outside the standard libraries. Nevertheless, if you still don't want to use this as a dependency, you can of course also copy the code of `DefaultApplication.open()` to another package, but then you will have to repeat this to keep up with bugfixes and developments.\n\n## Usage\n\n```julia\nimport DefaultApplication\nDefaultApplication.open(\"/some/file.png\")\n```\n\n`open` is not exported from the package, because it would clash with `Base.open`.\n\n## Status\n\n| OS      | version      | status  |\n|:--------|:-------------|:------- |\n| Linux   | Ubuntu 19.10 | `✅`      |\n| Linux   | Ubuntu 19.04 | `✅`      |\n| Linux   | Ubuntu 18.04 | `✅`      |\n| Linux   | Ubuntu 16.04 | `✅` (CI) |\n| Linux   | Debian 8.0   | `✅`      |\n| OS X    | Darwin 17.7  | `✅`      |\n| Windows | 10           | `✅`      |\n| Windows | 11           | `✅`      |\n| WSL2    | Ubuntu 20.04 | `✅`      |\n\nIf your OS/version is missing, please test as described below and open an issue with the information so that this table can be extended.\n\n## Testing\n\nCurrently there are only partial unit tests, since the functionality of this package is difficult to test without a desktop environment. Testing, bug reports, feature requests and PRs are welcome.\n\nThere is a utility function `DefaultApplication.test()` for testing, which prints information for bug reports:\n\n```julia\njulia\u003e import DefaultApplication\n\njulia\u003e DefaultApplication.test()\n┌ Info: opening text file with the default application\n└   path = \"/tmp/jl_ISgu7A.txt\"\n┌ Info: If the file was not opened, please copy the output and open an issue at\n└ https://github.com/tpapp/DefaultApplication.jl/issues\nJulia Version 1.4.0-rc1.0\nCommit b0c33b0cf5 (2020-01-23 17:23 UTC)\nPlatform Info:\n  OS: Linux (x86_64-linux-gnu)\n      Ubuntu 19.10\n  uname: Linux 5.3.0-29-generic #31-Ubuntu SMP Fri Jan 17 17:27:26 UTC 2020 x86_64 x86_64\n  CPU: Intel(R) Core(TM) i5-8250U CPU @ 1.60GHz:\n              speed         user         nice          sys         idle          irq\n       #1  3014 MHz     312924 s        452 s     102521 s    4773911 s          0 s\n       #2  3005 MHz     392192 s        374 s      79742 s    1121314 s          0 s\n       #3  3028 MHz     417948 s        275 s      80886 s    1122523 s          0 s\n       #4  2984 MHz     400951 s        386 s      84294 s    1115707 s          0 s\n       #5  2909 MHz     411316 s        613 s      82936 s    1120208 s          0 s\n       #6  2878 MHz     386572 s        368 s      82815 s    1116943 s          0 s\n       #7  3011 MHz     366070 s        673 s      92152 s    1123035 s          0 s\n       #8  2997 MHz     383230 s        544 s      82892 s    1124208 s          0 s\n\n  Memory: 15.518669128417969 GB (5564.16796875 MB free)\n  Uptime: 86757.0 sec\n  Load Avg:  0.58447265625  0.50439453125  0.505859375\n  WORD_SIZE: 64\n  LIBM: libopenlibm\n  LLVM: libLLVM-8.0.1 (ORCJIT, skylake)\nEnvironment:\n  JULIA_NUM_THREADS = 1\n  HOME = /home/tamas\n  XDG_SEAT_PATH = /org/freedesktop/DisplayManager/Seat0\n  MANDATORY_PATH = /usr/share/gconf/xubuntu.mandatory.path\n  DEFAULTS_PATH = /usr/share/gconf/xubuntu.default.path\n  TERM = eterm-color\n  PATH = /home/tamas/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin\n  XDG_SESSION_PATH = /org/freedesktop/DisplayManager/Session0\n  JULIA_CMDSTAN_HOME = /home/tamas/src/cmdstan/\nProcess(`xdg-open /tmp/jl_ISgu7A.txt`, ProcessRunning)\n```\n\n## Related documentation\n\n- [`COMSPEC`](https://en.wikipedia.org/wiki/COMSPEC) (Windows)\n- [`xdg-open`](https://linux.die.net/man/1/xdg-open) (Linux)\n- [`open`](https://ss64.com/osx/open.html) (OS X)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftpapp%2Fdefaultapplication.jl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftpapp%2Fdefaultapplication.jl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftpapp%2Fdefaultapplication.jl/lists"}