-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ Add Windows support via Registry (#9)
* ✨ Add Windows support via Registry * Convert int to str * Bump version * Refactor for coverage * Add HKCU and additional browser names * Add msedge-canary * Prevent using shlex on Windows * Catch exception when Registry key is not found
- Loading branch information
1 parent
0bc990f
commit c49ddea
Showing
6 changed files
with
172 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,10 +54,17 @@ pip install pybrowsers | |
|
||
- [x] Detect browser on OSX | ||
- [x] Detect browser on Linux | ||
- [ ] Detect browser on Windows | ||
- [X] Detect browser on Windows | ||
- [x] Launch browser with arguments | ||
- [ ] Get browser by version (support wildcards) | ||
|
||
## References | ||
|
||
- [httptoolkit/browser-launcher](https://github.com/httptoolkit/browser-launcher) | ||
- [Desktop Entry Specification](https://specifications.freedesktop.org/desktop-entry-spec/latest/) | ||
- [Github: webbrowser.open incomplete on Windows](https://github.com/python/cpython/issues/52479#issuecomment-1093496412) | ||
- [Stackoverflow: Grabbing full file version of an exe in Python](https://stackoverflow.com/a/68774871/1279157) | ||
|
||
## Author | ||
|
||
- [Ronie Martinez](mailto:[email protected]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[tool.poetry] | ||
name = "pybrowsers" | ||
version = "0.1.0-alpha.4" | ||
version = "0.1.0-alpha.5" | ||
repository = "https://github.com/roniemartinez/browsers" | ||
description = "Python library for detecting and launching browsers" | ||
authors = ["Ronie Martinez <[email protected]>"] | ||
|
@@ -29,6 +29,7 @@ packages = [ | |
[tool.poetry.dependencies] | ||
python = "^3.7" | ||
pyxdg = { version = "^0.27", markers = "sys_platform == 'linux'" } | ||
pywin32 = { version = "^303", markers = "sys_platform == 'win32'" } | ||
|
||
[tool.poetry.dev-dependencies] | ||
autoflake = "^1.3.1" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters