Is there a way to Make an Automatically Closing Qube for Authenticator?

I have authenticator in a non-networked Qube. I only am using that Qube VM for Authenticator.

As soon as I close Authenticator, it would be great if the entire Qube automatically shut off. I know that happens with disp-tor-browser instances. Is there a way this can also happen with Authenticator?

1 Like

A simple route would be to use qubes-app-shutdown-idle. You can then
edit the timeout in /usr/lib/python3/dist-packages/qubesidle/idleness_monitor.py
: the default is 15 * 60 - 15 mins, but you can set this as low as you
like. This will automatically shutdown the qube after the set timeout
when no windows are open.
Alternatively, make the qube a disposable template, and run
Authenticator in disposables. They will automatically be deleted when
you close the program.

I never presume to speak for the Qubes team.
When I comment in the Forum I speak for myself.

1 Like

if i open Authenticator, don’t touch it for 60 minutes, then shut it down, and have in rc.local qubes-app-shutdown-idle, but set the default to 1 * 1 (or whatever 1 second is), will that close it immediately once the program is closed?

I don’t know if idle but with a program open will still trigger the shutdown

Yes.
You enable the shutdown-idle service using qvm-features, after
installation.
The timer runs against various checks, including network activity, open
windows. The latter would be your case.

I never presume to speak for the Qubes team.
When I comment in the Forum I speak for myself.