Fix quickaccess token passing
This commit is contained in:
parent
a1ab7b0069
commit
8a8a2c10a6
|
@ -101,7 +101,6 @@ class GoldwardenQuickAccessApp(Adw.Application):
|
|||
|
||||
def update_logins(self):
|
||||
logins = goldwarden.get_vault_logins()
|
||||
print(logins)
|
||||
if logins == None:
|
||||
os._exit(0)
|
||||
return
|
||||
|
@ -109,9 +108,7 @@ class GoldwardenQuickAccessApp(Adw.Application):
|
|||
self.update()
|
||||
|
||||
if __name__ == "__main__":
|
||||
# todo add proper method to debug this
|
||||
# token = sys.stdin.readline()
|
||||
token = "Test"
|
||||
token = sys.stdin.readline()
|
||||
goldwarden.create_authenticated_connection(token)
|
||||
app = GoldwardenQuickAccessApp(application_id="com.quexten.Goldwarden.quickaccess")
|
||||
app.run(sys.argv)
|
|
@ -19,6 +19,8 @@ def run_window(name, token):
|
|||
p = subprocess.Popen(["python3", "-m", "src.gui." + name], stdin=subprocess.PIPE, stdout=subprocess.PIPE, cwd=cwd, start_new_session=True)
|
||||
p.stdin.write(f"{token}\n".encode())
|
||||
p.stdin.flush()
|
||||
|
||||
|
||||
class GoldwardenSettingsApp(Adw.Application):
|
||||
def __init__(self, **kwargs):
|
||||
super().__init__(**kwargs)
|
||||
|
|
Loading…
Reference in New Issue