summaryrefslogtreecommitdiff
path: root/main.py
diff options
context:
space:
mode:
authorJSON Derulo <136133082+xXJSONDeruloXx@users.noreply.github.com>2025-01-28 12:12:49 -0500
committerGitHub <noreply@github.com>2025-01-28 12:12:49 -0500
commitac809d88c455a96b00d2b0afae79b38da53bb32d (patch)
tree947f0ef5e710a495c5909ba17f0eb281563e5629 /main.py
parent709062d93cec154abed768a0dde1122bb4d79a6a (diff)
parent9dfbe191da4e498e3dd7d00e29b9258779a652c4 (diff)
downloadDecky-Framegen-ac809d88c455a96b00d2b0afae79b38da53bb32d.tar.gz
Decky-Framegen-ac809d88c455a96b00d2b0afae79b38da53bb32d.zip
Merge pull request #6 from DGdev91/non-steamdeck-support
Enhancements to make the plugin work on non-SteamOS distros
Diffstat (limited to 'main.py')
-rw-r--r--main.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/main.py b/main.py
index 66a81d0..3b05808 100644
--- a/main.py
+++ b/main.py
@@ -14,7 +14,7 @@ class Plugin:
async def run_uninstall_fgmod(self) -> dict:
try:
result = subprocess.run(
- ["/bin/bash", "/home/deck/homebrew/plugins/Decky-Framegen/assets/fgmod-remover.sh"],
+ ["/bin/bash", Path.home() / "homebrew" / "plugins" / "Decky-Framegen" / "assets" / "fgmod-remover.sh"],
capture_output=True,
text=True,
check=True
@@ -25,7 +25,7 @@ class Plugin:
async def run_install_fgmod(self) -> dict:
try:
- assets_dir = Path("/home/deck/homebrew/plugins/Decky-Framegen/assets")
+ assets_dir = Path.home() / "homebrew" / "plugins" / "Decky-Framegen" / "assets"
downloads_dir = Path.home() / "Downloads"
if not assets_dir.exists():
@@ -59,7 +59,7 @@ class Plugin:
timeout=300
)
- fgmod_path = Path("/home/deck/fgmod")
+ fgmod_path = Path.home() / "fgmod"
fgmod_path.mkdir(parents=True, exist_ok=True)
decky.logger.info(f"Script output:\n{process.stdout}")
@@ -97,7 +97,7 @@ class Plugin:
}
async def check_fgmod_path(self) -> dict:
- path = "/home/deck/fgmod/"
+ path = Path.home() / "fgmod"
required_files = [
"amd_fidelityfx_dx12.dll", "dlssg_to_fsr3_amd_is_better.dll", "libxess.dll",
"amd_fidelityfx_vk.dll", "dlssg_to_fsr3.ini", "licenses",
@@ -119,7 +119,7 @@ class Plugin:
# New method to list installed Steam games
async def list_installed_games(self) -> dict:
try:
- steam_root = "/home/deck/.steam/steam"
+ steam_root = Path.home() / ".steam" / "steam"
library_file = Path(steam_root) / "steamapps" / "libraryfolders.vdf"
if not library_file.exists():