Update TOTP codes when they are expired
If system is suspended, then after resume TOTP are not updated until
'period' seconds are left in the wakeup state. During this time shown
TOTP codes are wrong, because they are calculated base on the
timestamp before system was suspended.
Fix the back button on the add dialog
Remove duplicate version from appstream data
Gracefully handle doubles in URLs
Otherwise following error happens:
```
File "numberstation/window.py", line 302, in on_save_clicked
url = OTPUrl.create(name=name, type=type, secret=secret, duration=duration, length=length, counter=counter)
File "numberstation/otpurl.py", line 44, in create
return cls(otp.provisioning_uri(name=name))
File "numberstation/otpurl.py", line 26, in __init__
self.period = int((qs['period'][0])) if 'period' in qs else 30
ValueError: invalid literal for int() with base 10: '60.0'
```
Signed-off-by: Andrey Skvortsov <andrej.skvortzov@gmail.com>
Don't stretch the window on long key names
Improve behavior when launching multiple instances
The current implementation ignores a key passed to the second instance
and always tries to add a key passed to the first instance.
This patch fixes this bug by handling arguments with GApplication.
This patch also makes this app focusing the existing window instead of creating
a new one when launching the second instance.
Fixed a bug that loads resources from cwd, not cwd/numberstation, when cwd/numberstation/numberstation.gresource exists
Remove compiled gresource
Allow empty issuer in andotp import
add contrib/andotp.py: import from andotp
This script converts the andOTP JSON dump into a list of otpauth://
URLs.
Add compiled gresource to ignore file
Fix the hotp counter variable in the url format