1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-11-08 11:36:05 +01:00

anki: strip usernameFile and passwordFile contents

This commit is contained in:
June Stepp 2025-09-23 09:39:54 -05:00 committed by Austin Horstman
parent 5468c92a23
commit 293d105993

View file

@ -174,9 +174,9 @@ in
if username:
aqt.mw.pm.set_sync_username(username)
elif username_file and username_file.exists():
aqt.mw.pm.set_sync_username(username_file.read_text())
aqt.mw.pm.set_sync_username(username_file.read_text().strip())
if key_file and key_file.exists():
aqt.mw.pm.set_sync_key(key_file.read_text())
aqt.mw.pm.set_sync_key(key_file.read_text().strip())
aqt.gui_hooks.profile_did_open.append(set_server)
'';