passff-host icon indicating copy to clipboard operation
passff-host copied to clipboard

Self-updating feature

Open tuxor1337 opened this issue 6 years ago • 2 comments

There is a self-updating feature in Firefox extensions which is very convenient for users while increasing security at the same time. For the host app, the extension at least makes a version check and refuses to work as long as the user hasn't updated her host app. While this is pretty safe (in case of security updates), it's inconvenient for users.

I suggest adding a self-updating feature to passff-host so that the extension can request an update. This means that the host app should support the command "update" which would trigger a check for updates from a remote repository (like GitHub) whose URL is hard-coded. The most recent version is downloaded and replaces the file passff.py. Whenever the extension notices an outdated version of the host app it triggers an update.

However, since there is a hardcoded preferences section in the passff.py file we would need to take care of that, maybe extracting it and copying it over to the new version automatically. Or we start using external configuration files...

tuxor1337 avatar Feb 07 '19 09:02 tuxor1337

I think this would be nice but I would like to have a way to have it disabled for packaging in distributions (I package it for gentoo).

lanodan avatar Feb 08 '19 12:02 lanodan

pass-host, could be the git repository with a stable version. $ pass-host update would pull new tags and checkout. Something similar to what asdf-vm¹ does.

gutierri avatar Aug 17 '19 21:08 gutierri