mirror of
https://github.com/rangermix/TwitchDropsMiner.git
synced 2026-05-29 16:39:37 +00:00
Add quotes to the autostart path
This commit is contained in:
3
gui.py
3
gui.py
@@ -1101,7 +1101,8 @@ class SettingsPanel:
|
||||
self._settings.autostart = enabled
|
||||
self._settings.autostart_tray = tray
|
||||
if enabled:
|
||||
self_path = str(Path(sys.argv[0]).resolve())
|
||||
# NOTE: we need double quotes in case the path contains spaces
|
||||
self_path = f'"{Path(sys.argv[0]).resolve()!s}"'
|
||||
if tray:
|
||||
self_path += " --tray"
|
||||
with RegistryKey("HKCU/Software/Microsoft/Windows/CurrentVersion/Run") as key:
|
||||
|
||||
Reference in New Issue
Block a user