Merge remote-tracking branch 'flapflap/de-network_configuration'
[tails-test.git] / config / chroot_local-includes / usr / local / bin / tails-about
blobf5afbb81c5dcee9fca26baf0d19c7359bcc0208b
1 #!/usr/bin/python
2 # -*- encoding: UTF-8
4 import gettext
5 import subprocess
7 import glib
8 import gtk
9 import gtk.gdk
11 gettext.install("tails")
12 try:
13 tails_version = subprocess.Popen(["tails-version"], stdout=subprocess.PIPE).communicate()[0]
14 tails_main_version = tails_version.split("-")[0]
15 except OSError:
16 tails_version = _("not available")
17 tails_main_version = ""
18 about_dialog = gtk.AboutDialog()
19 about_dialog.set_program_name(_("Tails"))
20 try:
21 about_dialog.set_logo(gtk.gdk.pixbuf_new_from_file_at_size('/usr/share/doc/tails/website/promote/logo/tails-logo-flat-inverted.svg', 400, 200))
22 except glib.GError:
23 pass
24 about_dialog.set_comments(_("The Amnesic Incognito Live System") + "\n\n" +
25 _("Build information:\n%s") % tails_version)
26 about_dialog.set_copyright("Tails developers")
27 about_dialog.set_title=(_("About Tails"))
28 about_dialog.set_version(tails_main_version)
29 about_dialog.set_website("https://tails.boum.org/")
31 about_dialog.connect("delete-event", gtk.main_quit)
32 about_dialog.connect("response", gtk.main_quit)
33 about_dialog.show_all()
35 gtk.main()