From df78e74eb372e09483ef9f1e0fca20a6572f7755 Mon Sep 17 00:00:00 2001 From: intrigeri Date: Fri, 2 Mar 2018 15:26:56 +0000 Subject: [PATCH] Add --no-display-finished-message: don't display the "Persistence wizard - Finished" message (refs: #14594) After "tails-additional-software apt-post" has called us a first time to create the persistence and enable ASP, we should not display any such message before we return control back to tails-additional-software (and before tails-additional-software calls us again after saving its own configuration, in order to let the use see the current config). --- lib/Tails/Persistence/Setup.pm | 6 ++++++ tails-persistence-setup.1.markdown | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/lib/Tails/Persistence/Setup.pm b/lib/Tails/Persistence/Setup.pm index ce8bdc2..dafac54 100644 --- a/lib/Tails/Persistence/Setup.pm +++ b/lib/Tails/Persistence/Setup.pm @@ -158,6 +158,11 @@ has 'force_enable_presets' => traits => ['Array'], documentation => q{Specify once per additional preset to forcibly enable.}; +has 'display_finished_message' => + ro Bool, + documentation => q{Display an explanatory message once done.}, + default => sub { 1 }; + has '+codeset' => ( metaclass => 'NoGetopt' ); has '+encoding' => ( metaclass => 'NoGetopt' ); @@ -670,6 +675,7 @@ sub goto_next_step { } else { $self->debug("No more steps."); + Gtk3->main_quit unless $self->display_finished_message; $self->current_step->title->set_text($self->encoding->decode(gettext( q{Persistence wizard - Finished} ))); diff --git a/tails-persistence-setup.1.markdown b/tails-persistence-setup.1.markdown index 0264b98..a4a250f 100644 --- a/tails-persistence-setup.1.markdown +++ b/tails-persistence-setup.1.markdown @@ -56,3 +56,8 @@ Example: `--step bootstrap --step configure`. Specify once per additional preset to forcibly enable. Example: `--force-enable-preset Thunderbird'` + +`--no-display-finished-message` +------------------------------- + +Don't display the "Persistence wizard - Finished" message. -- 2.11.4.GIT