mirror of
https://github.com/vale981/tridactyl
synced 2025-03-04 17:11:40 -05:00
Remove -ProfileManager
and -new-tab
during Firefox restart
This commit is contained in:
parent
93ca6c50a6
commit
9d5ce40505
1 changed files with 4 additions and 10 deletions
|
@ -213,24 +213,18 @@ def win_firefox_restart(message):
|
|||
# }}}
|
||||
|
||||
ff_bin_path = "\"%s\"" % shutil.which(ff_bin_name)
|
||||
new_tab_url = "https://www.mozilla.org/en-US/firefox/"
|
||||
|
||||
if profile_dir == "auto":
|
||||
ff_lock_path = ff_bin_path
|
||||
ff_args = "\"%s\" \"%s\" \"%s\" \"%s\"" % \
|
||||
("-foreground",
|
||||
"-ProfileManager",
|
||||
"-new-tab",
|
||||
new_tab_url)
|
||||
ff_args = "\"%s\"" % \
|
||||
("-foreground")
|
||||
else:
|
||||
ff_lock_path = "\"%s/%s\"" % (profile_dir,
|
||||
ff_lock_name)
|
||||
ff_args = "\"%s\" \"%s\" \"%s\" \"%s\" \"%s\"" % \
|
||||
ff_args = "\"%s\" \"%s\" \"%s\"" % \
|
||||
("-foreground",
|
||||
"-profile",
|
||||
profile_dir,
|
||||
"-new-tab",
|
||||
new_tab_url)
|
||||
profile_dir)
|
||||
|
||||
try:
|
||||
restart_ps1_content = '''$profileDir = "%s"
|
||||
|
|
Loading…
Add table
Reference in a new issue