mirror of
https://github.com/quexten/goldwarden.git
synced 2024-11-24 06:17:44 +03:00
Fix background portal task idling in the background
This commit is contained in:
parent
ccbfbfe3e3
commit
4081d7fac4
@ -5,11 +5,13 @@ import gc
|
||||
from gi.repository import Gtk, Adw, GLib, Gio
|
||||
from random import randint
|
||||
import time
|
||||
|
||||
import os
|
||||
from threading import Timer
|
||||
|
||||
def receive_autostart(self, *args):
|
||||
print("autostart enabled..!?")
|
||||
print(args)
|
||||
os._exit(0)
|
||||
|
||||
def request_autostart():
|
||||
bus = Gio.bus_get_sync(Gio.BusType.SESSION, None)
|
||||
@ -54,5 +56,8 @@ def request_autostart():
|
||||
|
||||
request_autostart()
|
||||
|
||||
thread = Timer(10, os._exit, [0])
|
||||
thread.start()
|
||||
|
||||
loop = GLib.MainLoop()
|
||||
loop.run()
|
||||
|
Loading…
Reference in New Issue
Block a user