This repository was archived by the owner on Jun 22, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 608
Edge app #663
Draft
doug-benn
wants to merge
7
commits into
python-eel:main
Choose a base branch
from
doug-benn:Edge-app
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Edge app #663
Changes from 4 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
0ea5a25
.vscode to gitignore
doug-benn 0c243dd
Edge App Mode
doug-benn 463f81d
Edge pyinstaller "stdout=sps.PIPE, stderr=sps.PIPE, stdin=sps.PIPE," …
doug-benn 6085773
.vscode to gitignore
doug-benn 4c86c90
Edge App Mode
doug-benn d69ae82
Merge branch 'Edge-app' of https://github.com/doug-benn/Eel into Edge…
doug-benn 1fb06d7
New Types added
doug-benn File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -3,25 +3,28 @@ | |
| import sys | ||
| from typing import List | ||
|
|
||
| from eel.types import OptionsDictT | ||
| name = "Edge" | ||
|
|
||
| name: str = "Edge" | ||
|
|
||
|
|
||
| def run(path: str, options: OptionsDictT, start_urls: List[str]) -> None: | ||
| def run(path, options, start_urls): | ||
| if path != "edge_legacy": | ||
| if options["app_mode"]: | ||
| for url in start_urls: | ||
| sps.Popen([path, "--app=%s" % url] + options["cmdline_args"], stdout=sps.PIPE, stderr=sps.PIPE, stdin=sps.PIPE) | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For consistency I'd suggest you break the long lines here for the calls to |
||
| else: | ||
| args = options["cmdline_args"] + start_urls | ||
| sps.Popen([path, "--new-window"] + args, stdout=sps.PIPE, stderr=sps.PIPE, stdin=sps.PIPE) | ||
| sps.Popen( | ||
| [path, "--new-window"] + args, | ||
| stdout=sps.PIPE, | ||
| stderr=sps.PIPE, | ||
| stdin=sps.PIPE, | ||
| ) | ||
| else: | ||
| cmd = "start microsoft-edge:{}".format(start_urls[0]) | ||
| sps.Popen(cmd, stdout=sps.PIPE, stderr=sps.PIPE, stdin=sps.PIPE, shell=True) | ||
|
|
||
|
|
||
| def find_path() -> bool: | ||
| def find_path(): | ||
| if sys.platform in ["win32", "win64"]: | ||
| return _find_edge_win() | ||
| else: | ||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would propose passing back the string
'start microsoft-edge'from _find_edge_win(). For two reasons:None.