Remove -ProfileManager and -new-tab during Firefox restart

This commit is contained in:
Babil Golam Sarwar 2018-05-26 23:28:08 +10:00
parent 93ca6c50a6
commit 9d5ce40505

View file

@ -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"