Return value from signal handlers is lost in case of async API
I’m working with AutoAR and GJS, and I have an odd problem when trying to decompress password-protected files.
I did this:
const passwordRequiredID = extractor.connect('request-passphrase', () => {
print("Asking for password");
return "password";
});
to decompress a .zip file compressed with “password” as password, but it doesn’t work because, for some reason, the callback is being called asynchronously, so when Javascript returns the password, it is too late.
Edited by Ondrej Holy