summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoranonym <anonym@riseup.net>2017-09-23 12:59:19 +0200
committeranonym <anonym@riseup.net>2017-09-23 12:59:19 +0200
commit1111fa4cc0e4ec018b8ded72f126404b4777b3d2 (patch)
tree9de0e5a39e4186368a7e7d2771013580a34fc7d9
parentae255f0a40b958f62f8019fc3f94c818d40a4315 (diff)
Drop the CLI.tails-installer_5.0
It's been broken for ages, and the GUI is the only supported method.
-rwxr-xr-xtails-installer32
1 files changed, 9 insertions, 23 deletions
diff --git a/tails-installer b/tails-installer
index 14a6a6a..8212ab1 100755
--- a/tails-installer
+++ b/tails-installer
@@ -77,29 +77,15 @@ def parse_args():
def main():
opts, args = parse_args()
- if opts.console:
- from tails_installer import TailsInstallerCreator
- try:
- live = TailsInstallerCreator(opts)
- live.detect_supported_drives()
- live.verify_filesystem()
- live.extract_iso()
- live.update_configs()
- live.install_bootloader()
- except Exception, e:
- print str(e)
- x = raw_input("\nDone! Press any key to exit")
- else:
- ## Start our graphical interface
- import gi
- gi.require_version('Gtk', '3.0')
- from gi.repository import Gtk
- from tails_installer.gui import TailsInstallerWindow
- try:
- win = TailsInstallerWindow(opts=opts, args=sys.argv)
- Gtk.main()
- except KeyboardInterrupt:
- pass
+ import gi
+ gi.require_version('Gtk', '3.0')
+ from gi.repository import Gtk
+ from tails_installer.gui import TailsInstallerWindow
+ try:
+ win = TailsInstallerWindow(opts=opts, args=sys.argv)
+ Gtk.main()
+ except KeyboardInterrupt:
+ pass
if __name__ == '__main__':
main()