Exemplo n.º 1
0
 def setBranch(branch):
     p = run(f'pkexec pacman-mirrors --api --set-branch {branch}')
     result = p.stdout.readline().decode("utf-8")
     from JAK.Widgets import InfoDialog
     window = Instance.retrieve("win")
     msg = f"You are now set on {Desktop.getBranch().capitalize()}, Please sync your new mirrors."
     InfoDialog(window, "Software Branch", msg)
Exemplo n.º 2
0
 def restoreDefaults():
     home = os.path.expanduser("~")
     # TODO backup old files
     run(f"cp -r /etc/skel {home}")
     from JAK.Widgets import InfoDialog
     window = Instance.retrieve("win")
     msg = "Profile defaults have been set on your home directory."
     InfoDialog(window, "Set Defaults", msg)
 def _download_finished(self) -> None:
     """
     Goes to previous page and pops an alert informing the user that the download is finish and were to find it
     """
     file_path = self.download_item.path()
     msg = f"File Downloaded to: {file_path}"
     from JAK.Widgets import InfoDialog
     InfoDialog(self, "Download Complete", msg)