Currently, there are three options use in whonix-setup-wizard: setup, repository, locale_settings.
Shall we run whonixcheck after the GUI configurations for each option? Specifically, does it make sense to run whonixcheck even after user simply change locale_settings?
It looks like anon-connection-wizard is broken in the last Whonix update.
At line 1456, there is a f.write('\n') which crash the script when pressing the Next button.
We should probably remove if not whonix_setup_wizard == "":? If whonix-setup-wizard binary is no where to be found but the whonixsetup_check_for_start (same package) script is running, we should probably error out with a unhandled python exception rather than doing nothing?
Where would the “is Tor’s systemd unit running” code fit best? (In essence running systemctl --no-pager status tor@default and checking exit code?) A new importable function in tor_status.py? Or should be just implemented in whonixsetup_check_for_start?
Implemented this as comment only in whonixsetup_check_for_start. Too complex/late for Whonix 15 since this might result in false positives. See TODO (which is not easy to resolve).
# when there is no page need showing, we simply do not start GUI to
# avoid an empty page
if len(Common.wizard_steps) != 0:
wizard = WhonixSetupWizard()
if Common.first_use_notice:
f = open('/var/cache/whonix-setup-wizard/status-files/first_use_check.done', 'w')
f.close()
if not os.path.exists('/var/cache/whonix-setup-wizard/status-files/whonixsetup.done'):
f = open('/var/cache/whonix-setup-wizard/status-files/whonixsetup.done', 'w')
f.close()
# run whonixcheck only when setup or repository option is selected.
# note that the case for repository has been handled before.
if Common.argument == 'setup':
command = '/usr/lib/whonixsetup_/ft_m_end'
call(command, shell=True)