ubiquity-le: Don't show educational content recover on minicom install

Signed-off-by: 's avatarDiego Giovane Pasqualin <dpasqualin@c3sl.ufpr.br>
parent 58aa313f
Package: ubiquity-le Package: ubiquity-le
Version: 2.1.4 Version: 2.1.5
Architecture: all Architecture: all
Maintainer: LE Maintainer <le-maintainer@c3sl.ufpr.br> Maintainer: LE Maintainer <le-maintainer@c3sl.ufpr.br>
Installed-Size: 14193 Installed-Size: 14193
......
...@@ -44,6 +44,12 @@ class PageGtk(plugin.PluginUI): ...@@ -44,6 +44,12 @@ class PageGtk(plugin.PluginUI):
def __init__(self, controller, *args, **kwargs): def __init__(self, controller, *args, **kwargs):
self.controller = controller self.controller = controller
from gi.repository import Gtk from gi.repository import Gtk
distro = os.popen('/usr/lib/ubiquity/le-utils/le-env').readline()
if distro == 'minicom':
self.page = None
return
builder = Gtk.Builder() builder = Gtk.Builder()
self.controller.add_builder(builder) self.controller.add_builder(builder)
builder.add_from_file(os.path.join(os.environ["UBIQUITY_GLADE"], "stepEducational.ui")) builder.add_from_file(os.path.join(os.environ["UBIQUITY_GLADE"], "stepEducational.ui"))
......
...@@ -168,13 +168,10 @@ class PageGtk(PageBase): ...@@ -168,13 +168,10 @@ class PageGtk(PageBase):
self.hostname_edited = False self.hostname_edited = False
self.hostname_timeout_id = 0 self.hostname_timeout_id = 0
result = os.popen('/usr/lib/ubiquity/le-utils/le-env') distro = os.popen('/usr/lib/ubiquity/le-utils/le-env').readline()
distro = result.readline()
if distro in ['multiterminal' ,'escola', 'minicom']: if distro in ['multiterminal' ,'escola', 'minicom']:
self.page = None self.page = None
result.close()
return return
result.close()
builder = Gtk.Builder() builder = Gtk.Builder()
self.controller.add_builder(builder) self.controller.add_builder(builder)
......
C3SL - Centro de Computacao Cientifica e Software Livre
Adriano da Luz
André P. Ziviani
Andrey Ricardo Pimentel
Anna H. B. Strauch
Bruna M. Da Silva
Carlos Carvalho
Cleide Luzia Bonfim Possamai
Dalmon Ian Martins Oliveira
Daniel Weingaertner
Diego Giovane Pasqualin
Edemir Maciel
Edileuton H. De Oliveira
Eduardo Almeida
Eduardo Tainan Bergamini
Eduardo Todt
Erik Alexandre Pucci
Fabiano Silva
Isabella S. L. Borges
Jessiel H. Hacke
João G. Pauluk
Juliana Bueno
Klismann Smoger Mottin
Laura Sanchez Garcia
Leticia Mara Peres
Lior Spach
Lucas Falcão Radaelli
Lucas Manika Koeb
Lucas Pazelo
Lucas Silva Martins
Lucas Vinicius Semprebom Goncalves
Luis Carlos Erpen de Bona
Marcos Castilho
Marcos Sunye
Michael Liang
Mozart P. Tomazetti
Rafael Ravedutti Lucio Machado
Rogério S. Martins
Thiago A. Salvadori
Thiago H. S. Picharski
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment