Allow syncing from the command-line
clawoflight opened this issue · 3 comments
The GUI is nice and all, but it uses up a lot of unnecessary resources to have that tray icon open and forcing a wake-up every minute(!).
Considering what this does, it would work very naturally to add a --sync-now option or similar that does exactly that: sync the keys and terminate.
It would then be trivial for power users to make a cronjob, systemd timer, login task etc. to update the keys.
For a cleanly designed program, that would not be much work and only require a few changes on the top level.
I started working on it, but it seemed like a lot of places in the code simply assumed a QT GUI was running and crashed when that was not the case. I don't understand the project layout enough to fix that efficiently.
If someone could explain the code to me or help me refactor it, I would resume working on this.
This is a good idea. I'm about to do some major refactoring to implement #140. I'll try to do it in such a way that syncing without starting the GUI is possible.
Hey @clawoflight, would you care to take a look at my PR #141 and give it a review? :)