summaryrefslogtreecommitdiff
path: root/main.py
diff options
context:
space:
mode:
authorVictor Borges <victor1882@outlook.com>2025-05-03 15:19:10 -0300
committerVictor Borges <victor1882@outlook.com>2025-05-03 15:19:10 -0300
commitd97d5f11e7807906cff2cf41cad815fb05b0096c (patch)
treef5782c1785fa35586be12d871cfc00a35f0569a5 /main.py
parentba7a86099b321f378b9d18ea025af9730642d8bf (diff)
downloaddecky-bazzite-buddy-d97d5f11e7807906cff2cf41cad815fb05b0096c.tar.gz
decky-bazzite-buddy-d97d5f11e7807906cff2cf41cad815fb05b0096c.zip
gets the correct branch now
Diffstat (limited to 'main.py')
-rw-r--r--main.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/main.py b/main.py
new file mode 100644
index 0000000..a1690fb
--- /dev/null
+++ b/main.py
@@ -0,0 +1,9 @@
+class Plugin:
+ # noinspection PyMethodMayBeStatic
+ async def get_bazzite_branch(self) -> str | None:
+ try:
+ file = open("/etc/bazzite/image_branch")
+ branch = file.read()
+ return branch
+ finally:
+ return "stable"