Changeset 2143


Ignore:
Timestamp:
Jul 11, 2016, 12:51:46 PM (3 years ago)
Author:
jrpelegrina
Message:

WIP

Location:
zero-lliurex-flavours/trunk/fuentes
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • zero-lliurex-flavours/trunk/fuentes/debian/changelog

    r746 r2143  
     1zero-lliurex-flavours (0.9.13) xenial; urgency=medium
     2
     3  * New gui based in python+Gtk
     4
     5 -- Juan Ramon Pelegrina <juapesai@hotmail.com>  Mon, 11 Jul 2016 10:54:35 +0200
     6
    17zero-lliurex-flavours (0.9.12) xenial; urgency=medium
    28
  • zero-lliurex-flavours/trunk/fuentes/debian/control

    r746 r2143  
    99Package: zero-lliurex-flavours
    1010Architecture: all
    11 Depends: ${misc:Depends}, llxcfg-runtime
     11Depends: ${misc:Depends}, llxcfg-runtime, python
    1212Description: Flavours Selection Tool
    1313 Flavours Selection Tool for changing between LliureX flavours
  • zero-lliurex-flavours/trunk/fuentes/install-files/usr/share/lliurex-flavours-selector/lliurex-flavours-selector.py

    r2142 r2143  
    1313import subprocess
    1414import sys
     15import datetime
    1516from math import pi
    1617
     
    400401               
    401402                self.thread_ret=-1
    402                 self.thread_ret=os.system(command)
     403                p=subprocess.Popen([command],shell=True,stdout=subprocess.PIPE,stderr=subprocess.PIPE) 
     404                output=p.communicate()
     405                self.thread_ret=p.returncode
     406                self.flavour_error=output[1]
    403407               
    404408        #def execute
     
    433437                        else:
    434438                                self.msg_label.show()
    435                                 msg=_("An error ocurred during installation")
    436                                 self.msg_label.set_markup(msg) 
     439                                msg=_("An error ocurred. See log in /tmp/lliurex-flavours-selector")
     440                                self.msg_label.set_markup(msg)
     441                                self.log(self.flavour_error)   
    437442                return self.t.is_alive()
    438443       
     
    579584               
    580585                pctx = PangoCairo.create_layout(ctx)
    581                 desc = Pango.font_description_from_string ("Noto Sans Bold 8")
     586                desc = Pango.font_description_from_string ("Noto Sans Bold 7.5")
    582587                pctx.set_font_description(desc)
    583588                pctx.set_markup(grid_button.info["name"])
     
    813818        # def restore_shadow_alfpha     
    814819
    815        
     820        def log(self,error):
     821                log_file="/tmp/lliurex-flavour-selector"
     822                f=open(log_file,"a")
     823                f.write("[" +datetime.datetime.today().strftime("%d/%m/%y %H:%M:%S") + " ] " + "\n" + error + "\n")
     824                f.close()
    816825#awesome tabs
    817826
  • zero-lliurex-flavours/trunk/fuentes/lliurex-po/zero-lliurex-flavours/es.po

    r2141 r2143  
    2929
    3030#: ../install-files/usr/share/lliurex-flavours-selector/lliurex-flavours-selector.py:435
    31 msgid "An error ocurred during installation"
    32 msgstr "A ocurrido un error durante la instalación"
     31msgid "An error ocurred. See log in /tmp/lliurex-flavours-selector"
     32msgstr "A ocurrido un error. Revise el log en /tmp/lliurex-flavours-selector"
    3333
    3434#: ../install-files/usr/share/lliurex-flavours-selector/lliurex-flavours-selector.py:525
  • zero-lliurex-flavours/trunk/fuentes/lliurex-po/zero-lliurex-flavours/zero-lliurex-flavours.pot

    r2141 r2143  
    2727
    2828#: ../install-files/usr/share/lliurex-flavours-selector/lliurex-flavours-selector.py:435
    29 msgid "An error ocurred during installation"
     29msgid "An error ocurred. See log in /tmp/lliurex-flavours-selector"
    3030msgstr ""
    3131
Note: See TracChangeset for help on using the changeset viewer.