diff options
Diffstat (limited to 'qml/mageiawelcome.py')
-rw-r--r-- | qml/mageiawelcome.py | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/qml/mageiawelcome.py b/qml/mageiawelcome.py index 1f366d3..534b9f4 100644 --- a/qml/mageiawelcome.py +++ b/qml/mageiawelcome.py @@ -2,13 +2,12 @@ # -*- coding: utf-8 -*- from PyQt5.QtGui import QGuiApplication from PyQt5.QtQuick import QQuickView -from PyQt5.QtQml import qmlRegisterType from PyQt5.QtCore import QUrl, QLocale, QTranslator, QLibraryInfo, QVariant, QAbstractListModel, \ - QModelIndex, Qt, QObject, pyqtSlot, pyqtProperty + QModelIndex, Qt, QObject, pyqtSlot import sys import os import subprocess -from helpers import * +from helpers import get_desktop_name, get_desktop_name2, is_installed import pwd class ConfList(QAbstractListModel): @@ -31,8 +30,6 @@ class ConfList(QAbstractListModel): arch = '64-bit' else: arch = '32-bit' - home = os.getenv("HOME") - username = os.getenv("USER") try: desktop = get_desktop_name(os.path.basename(os.getenv("DESKTOP_SESSION"))) except: @@ -97,7 +94,7 @@ class Norun(QObject): os.remove( self.conffile) else: os.makedirs(self.home + "/.config/mageiawelcome", exist_ok=True) - with open( self.conffile, 'w') as f: + with open( self.conffile, 'w') : pass @pyqtSlot(result=bool) |