summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2018-12-01 11:12:12 +0000
committerintrigeri <intrigeri@boum.org>2018-12-01 11:17:29 +0000
commit34fe0edaca93bef7da493e64de356cf4ac32eb53 (patch)
tree0b001c664e40fcfb6b9af2528409e69f389163f2
parent092719e99301f448cc1c11c54f1ddfd9f5b8f7c3 (diff)
Deprecate running Tails Installer outside of Tails: point to the doc and that's it (refs: #16011).feature/16011-deprecate-outside-of-tails
For now, only apply this change if /etc/tails-installer/deprecated-outside-of-Tails exists.
-rwxr-xr-xtails_installer/gui.py27
1 files changed, 27 insertions, 0 deletions
diff --git a/tails_installer/gui.py b/tails_installer/gui.py
index 76bbf17..cc0f7c0 100755
--- a/tails_installer/gui.py
+++ b/tails_installer/gui.py
@@ -305,12 +305,20 @@ class TailsInstallerWindow(Gtk.ApplicationWindow):
self.target_selected = False
self.devices_with_persistence = []
self.force_reinstall = False
+ self.deprecated = False
if self.opts.unprivileged == None:
self.opts.unprivileged = True
if self.opts.noverify == None:
self.opts.noverify = True
+ if os.path.isfile('/etc/tails-installer/deprecated-outside-of-Tails') \
+ and not is_running_from_tails():
+ self.deprecated = True
+ self._build_ui()
+ self.show()
+ return
+
self._build_ui()
self.opts.clone = is_running_from_tails()
@@ -417,6 +425,25 @@ class TailsInstallerWindow(Gtk.ApplicationWindow):
rgba.parse(config['branding']['color'])
self.__image_header.override_background_color(Gtk.StateFlags.NORMAL, rgba)
+ if self.deprecated:
+ self.__help_link.hide()
+ self.__box_source.hide()
+ self.__box_target.hide()
+ builder.get_object('scrolledwindow_log').hide()
+ self.__textview_log.hide()
+ self.__progressbar.hide()
+ self.__button_start.hide()
+ self.__box_installer.set_valign(Gtk.Align.START)
+ self.__image_header.set_valign(Gtk.Align.START)
+ self.__label_infobar_details.set_use_markup(True)
+ self.__infobar.set_message_type(Gtk.MessageType.INFO)
+ self.__label_infobar_title.set_text(
+ _("Tails Installer is deprecated"))
+ self.__label_infobar_details.set_markup(
+ _("To install a new Tails, see the <a href='https://tails.boum.org/install/'>installation documentation</a>.\n"
+ "To upgrade an existing Tails, see the <a href='https://tails.boum.org/upgrade/'>upgrade documentation</a>."))
+ self.__infobar.set_visible(True)
+
def on_radio_button_source_iso_toggled(self, radio_button):
self.live.log.debug("Entering on_radio_button_source_iso_toggled")
active_radio = [r for r in radio_button.get_group() if r.get_active()][0]