mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-11 07:46:07 -07:00
Fix Tautulli starting multiple instances on Windows
This commit is contained in:
parent
40dc6e08ef
commit
636806ae17
1 changed files with 3 additions and 3 deletions
|
@ -154,7 +154,7 @@ def set_startup():
|
|||
else:
|
||||
args = [exe, plexpy.FULL_PATH] + run_args
|
||||
|
||||
registry_key_name = '{}_{}'.format(common.PRODUCT, plexpy.CONFIG.PMS_UUID)
|
||||
registry_key_name = common.PRODUCT
|
||||
|
||||
cmd = ' '.join(cmd_quote(arg) for arg in args).replace('python.exe', 'pythonw.exe').replace("'", '"')
|
||||
|
||||
|
@ -162,14 +162,14 @@ def set_startup():
|
|||
# Rename old Tautulli registry key
|
||||
try:
|
||||
registry_key = winreg.OpenKey(winreg.HKEY_CURRENT_USER, startup_reg_path, 0, winreg.KEY_ALL_ACCESS)
|
||||
winreg.QueryValueEx(registry_key, common.PRODUCT)
|
||||
winreg.QueryValueEx(registry_key, '{}_{}'.format(common.PRODUCT, plexpy.CONFIG.PMS_UUID))
|
||||
reg_value_exists = True
|
||||
except WindowsError:
|
||||
reg_value_exists = False
|
||||
|
||||
if reg_value_exists:
|
||||
try:
|
||||
winreg.DeleteValue(registry_key, common.PRODUCT)
|
||||
winreg.DeleteValue(registry_key, '{}_{}'.format(common.PRODUCT, plexpy.CONFIG.PMS_UUID))
|
||||
winreg.CloseKey(registry_key)
|
||||
except WindowsError:
|
||||
pass
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue