mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-08 06:00:51 -07:00
Add args to Windows and MacOS auto startup
This commit is contained in:
parent
56a9ccd818
commit
4787f42d2e
2 changed files with 6 additions and 4 deletions
|
@ -162,10 +162,11 @@ def set_startup():
|
||||||
plist_file_path = os.path.join(launch_agents, plist_file)
|
plist_file_path = os.path.join(launch_agents, plist_file)
|
||||||
|
|
||||||
exe = sys.executable
|
exe = sys.executable
|
||||||
|
run_args = [arg for arg in plexpy.ARGS if arg != '--nolaunch']
|
||||||
if plexpy.FROZEN:
|
if plexpy.FROZEN:
|
||||||
args = [exe]
|
args = [exe] + run_args
|
||||||
else:
|
else:
|
||||||
args = [exe, plexpy.FULL_PATH]
|
args = [exe, plexpy.FULL_PATH] + run_args
|
||||||
|
|
||||||
plist_dict = {
|
plist_dict = {
|
||||||
'Label': common.PRODUCT,
|
'Label': common.PRODUCT,
|
||||||
|
|
|
@ -148,10 +148,11 @@ def set_startup():
|
||||||
startup_reg_path = "Software\\Microsoft\\Windows\\CurrentVersion\\Run"
|
startup_reg_path = "Software\\Microsoft\\Windows\\CurrentVersion\\Run"
|
||||||
|
|
||||||
exe = sys.executable
|
exe = sys.executable
|
||||||
|
run_args = [arg for arg in plexpy.ARGS if arg != '--nolaunch']
|
||||||
if plexpy.FROZEN:
|
if plexpy.FROZEN:
|
||||||
args = [exe]
|
args = [exe] + run_args
|
||||||
else:
|
else:
|
||||||
args = [exe, plexpy.FULL_PATH]
|
args = [exe, plexpy.FULL_PATH] + run_args
|
||||||
|
|
||||||
registry_key_name = '{}_{}'.format(common.PRODUCT, plexpy.CONFIG.PMS_UUID)
|
registry_key_name = '{}_{}'.format(common.PRODUCT, plexpy.CONFIG.PMS_UUID)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue