mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 15:47:45 +00:00
Ports: Register Browser in the Python webbrowser module
This makes the following work: >>> import webbrowser >>> webbrowser.open("http://serenityos.org") As well as this well-known easter egg: >>> import antigravity Pretty cool! :^)
This commit is contained in:
parent
877996465a
commit
9f970c3459
2 changed files with 16 additions and 0 deletions
|
@ -23,3 +23,7 @@ Our stub implementation of `setlocale()` always returns `nullptr`, which the int
|
|||
## `tweak-unsupported-printf-format-specifiers.patch`
|
||||
|
||||
Replace uses of `%.Ns` with `%s` as the former is not supported by our `printf` implementation yet and would result in empty strings. It uses `snprintf` already, so this is safe.
|
||||
|
||||
## `webbrowser.patch`
|
||||
|
||||
Register the SerenityOS Browser in the [`webbrowser`](https://docs.python.org/3/library/webbrowser.html) module.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue