Fix autostart in flatpak
This commit is contained in:
parent
f6c501f0d2
commit
592ff48148
|
@ -30,7 +30,7 @@ def request_autostart():
|
||||||
'handle_token': GLib.Variant('s', f'com/quexten/Goldwarden/{token}'),
|
'handle_token': GLib.Variant('s', f'com/quexten/Goldwarden/{token}'),
|
||||||
'reason': GLib.Variant('s', ('Autostart Goldwarden in the background.')),
|
'reason': GLib.Variant('s', ('Autostart Goldwarden in the background.')),
|
||||||
'autostart': GLib.Variant('b', True),
|
'autostart': GLib.Variant('b', True),
|
||||||
'commandline': GLib.Variant('as', ['main.py', '--hidden']),
|
'commandline': GLib.Variant('as', ['goldwarden_ui_main.py', '--hidden']),
|
||||||
'dbus-activatable': GLib.Variant('b', False),
|
'dbus-activatable': GLib.Variant('b', False),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -47,7 +47,8 @@ def main():
|
||||||
if is_flatpak:
|
if is_flatpak:
|
||||||
# to autostart the appes
|
# to autostart the appes
|
||||||
try:
|
try:
|
||||||
subprocess.Popen(["python3", f'{source_path}/background.py'], start_new_session=True)
|
print("Enabling autostart...")
|
||||||
|
subprocess.Popen(["python3", "-m", "src.linux.background"], cwd=root_path, start_new_session=True)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue