Skip to content

Commit

Permalink
app_stick_welcome: make install button do something sensible
Browse files Browse the repository at this point in the history
  • Loading branch information
eMPee584 committed Oct 5, 2023
1 parent 4d6a99b commit b7d90ad
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ class PortalWindow(QDialog):
loadUi(os.path.join(PortalWindow.ressourceDir, "portal.ui"), self)
self.welcomeTabInstallStickButton.clicked.connect(self.installClicked)
self.installTabCalamaresPushButton.clicked.connect(self.calamaresClicked)
self.installTabUSBPushButton.clicked.connect(self.duplicateClicked)

def setupTrayIcon(self):
self.anitray = AnimatedSystemTrayIcon(QMovie(os.path.join(PortalWindow.ressourceDir, "upload.wikimedia.org--wikipedia--commons--thumb--9--9e--GIF_KARRATUA.gif--240px-GIF_KARRATUA.gif")))
Expand Down Expand Up @@ -52,6 +53,9 @@ class PortalWindow(QDialog):
self.calamares = QProcess()
self.calamares.start("install-debian")

def duplicateClicked(self):
self.terminal = QProcess()
self.terminal.start("x-terminal-emulator -e /usr/src/usb-live-linux/scripts/stick-install")

class AnimatedSystemTrayIcon(QSystemTrayIcon):
def __init__(self, movie):
Expand Down

0 comments on commit b7d90ad

Please sign in to comment.