mirror of
https://github.com/theupriser/steamify-cachyos.git
synced 2026-10-03 17:41:58 +02:00
feat: Everything in the home folder under steamify (state, scripts, icon), moved once from the old name
This commit is contained in:
1 parent
2e0881b4fa
commit
479b70b337
10 files changed
+113
-20
No files matched your search
@@ -1,5 +1,5 @@
|
||||
#!/bin/bash
|
||||
# Installed by cachyos-gamescope-boot: install missing -headers for every
|
||||
# Installed by Steamify: install missing -headers for every
|
||||
# installed kernel, so DKMS builds leds-valve for it.
|
||||
set -u
|
||||
missing=()
|
||||
|
||||
@@ -16,11 +16,11 @@ import urllib.request
|
||||
|
||||
REPO = "theupriser/steamify-cachyos"
|
||||
STATE_DIR = os.path.join(os.environ.get("XDG_STATE_HOME") or os.path.expanduser("~/.local/state"),
|
||||
"cachyos-gamescope-boot")
|
||||
"steamify")
|
||||
STATE = os.path.join(STATE_DIR, "notify.state")
|
||||
DATA = os.environ.get("XDG_DATA_HOME") or os.path.expanduser("~/.local/share")
|
||||
RUN_APP = os.path.join(DATA, "cachyos-gamescope-boot", "run-app")
|
||||
RUN_TERMINAL = os.path.join(DATA, "cachyos-gamescope-boot", "run-wizard")
|
||||
RUN_APP = os.path.join(DATA, "steamify", "bin", "run-app")
|
||||
RUN_TERMINAL = os.path.join(DATA, "steamify", "bin", "run-wizard")
|
||||
RELEASE = f"https://github.com/{REPO}/releases/latest/download"
|
||||
|
||||
|
||||
@@ -83,7 +83,7 @@ def main():
|
||||
app.setApplicationName("Steamify")
|
||||
app.setDesktopFileName("steamify-ui")
|
||||
app.setQuitOnLastWindowClosed(False)
|
||||
icon = QIcon.fromTheme("cachyos-gamescope-boot-wizard", QIcon.fromTheme("steam"))
|
||||
icon = QIcon.fromTheme("steamify", QIcon.fromTheme("steam"))
|
||||
|
||||
def open_app():
|
||||
# The way Steamify was last used (the app or the terminal menu), the
|
||||
@@ -126,7 +126,7 @@ def main():
|
||||
relay.picked.connect(lambda a: open_app() if a == "open" else skip() if a == "skip" else None)
|
||||
|
||||
def notify():
|
||||
r = subprocess.run(["notify-send", "--app-name=Steamify", "--icon=cachyos-gamescope-boot-wizard",
|
||||
r = subprocess.run(["notify-send", "--app-name=Steamify", "--icon=steamify",
|
||||
"-A", "open=Open Steamify", "-A", "skip=Skip this version",
|
||||
f"Steamify {new} is available",
|
||||
"Open Steamify to see what's new and choose what to update."],
|
||||
|
||||
Reference in new issue
Block a user