summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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]