diff options
-rw-r--r-- | qml/mw.py | 26 |
1 files changed, 21 insertions, 5 deletions
@@ -115,11 +115,11 @@ class ConfList(QAbstractListModel): desktop = os.getenv("XDG_CURRENT_DESKTOP") self.configuration = [ - {'name': release}, - {'name': _("kernel: {}").format(kernel)}, - {'name': _("arch: {}").format(arch)}, - {'name': _("Desktop: {}").format(desktop)}, - {'name': _("Your user's id: {}").format(os.getuid())}, + {'name': _("Congratulations! You have completed the installation of {}").format(release)}, + {'name': _("You are using linux kernel: {}").format(kernel)}, + {'name': _("Your system architecture is: {}").format(arch)}, + {'name': _("You are now using the Desktop: {}").format(desktop)}, + {'name': _("Your user's id is: {}").format(os.getuid())}, ] def data(self, index, role=Qt.DisplayRole): @@ -155,6 +155,22 @@ class Launcher(QObject): cmd.append(app.property(i).toString()) subprocess.Popen(cmd) +class Norun(QObject): + def __init__(self): + QObject.__init__(self) + self.home = os.getenv("HOME") + self.conffile = self.home + "/.config/mageiawelcome/norun.flag" + + @pyqtSlot() + def setRunAtLaunch(self): + if os.path.exists(self.conffile): + os.remove( self.conffile) + @pyqtSlot() + def setNoRunAtLaunch(self): + os.makedirs(self.home + "/.config/mageiawelcome", exist_ok=True) + with open( self.conffile, w) as f: + pass + class Installable(QObject): def __init__(self): QObject.__init__(self) |