feat(url): optional browser field (yandex/chrome/firefox/edge)
Adds optional 'browser' field to url-action; runtime resolves it via config.BROWSER_PATHS (subprocess.Popen with the chosen exe). When omitted, falls back to webbrowser.open (system default). Constructor GUI gains a browser dropdown on URL action and on multi-step URL. Existing open_browser/youtube/google updated to use yandex by default since user prefers Yandex Browser.
This commit is contained in:
parent
d22a35c9c7
commit
a4171ec6b1
5 changed files with 65 additions and 12 deletions
|
|
@ -2,23 +2,23 @@ open_browser:
|
|||
phrases:
|
||||
- открой браузер
|
||||
- запусти браузер
|
||||
- открой гугл хром
|
||||
- гугл хром
|
||||
action: {type: exe, file: "Run browser.exe"}
|
||||
- открой яндекс
|
||||
- яндекс браузер
|
||||
action: {type: url, href: "about:blank", browser: "yandex"}
|
||||
|
||||
open_youtube:
|
||||
phrases:
|
||||
- открой ютуб
|
||||
- ютуб
|
||||
- запусти ютуб
|
||||
action: {type: exe, file: "Run youtube.exe"}
|
||||
action: {type: url, href: "https://www.youtube.com", browser: "yandex"}
|
||||
|
||||
open_google:
|
||||
phrases:
|
||||
- открой гугл
|
||||
- гугл
|
||||
- запусти гугл
|
||||
action: {type: exe, file: "Run google.exe"}
|
||||
action: {type: url, href: "https://www.google.com", browser: "yandex"}
|
||||
|
||||
music:
|
||||
phrases:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue