diff options
| author | Kurt Himebauch <136133082+xXJSONDeruloXx@users.noreply.github.com> | 2025-08-06 21:42:38 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-06 21:42:38 -0400 |
| commit | 4967dbb4ea19182c982c8107574a85f306266e8f (patch) | |
| tree | c4eca36e77886d847f02f426fe26eadeada9599f /main.py | |
| parent | 284181443578e70066fce70d7d067f219cc85b3d (diff) | |
| download | Decky-Framegen-4967dbb4ea19182c982c8107574a85f306266e8f.tar.gz Decky-Framegen-4967dbb4ea19182c982c8107574a85f306266e8f.zip | |
Pr fixes (#126)
* rm flatpak function, rm legacy script
* feat: add warning modal on copy button
Diffstat (limited to 'main.py')
| -rw-r--r-- | main.py | 37 |
1 files changed, 0 insertions, 37 deletions
@@ -90,39 +90,6 @@ class Plugin: except Exception as e: decky.logger.error(f"Failed to modify OptiScaler.ini: {e}") return False - - def _setup_flatpak_compatibility(self, fgmod_path): - """Set up Flatpak compatibility if needed""" - try: - # Create a clean environment to avoid PyInstaller issues - clean_env = os.environ.copy() - clean_env["LD_LIBRARY_PATH"] = "" - - # Check if Flatpak Steam is installed - flatpak_check = subprocess.run( - ["flatpak", "list"], - capture_output=True, - text=True, - check=False, - env=clean_env - ) - - if flatpak_check.returncode == 0 and "com.valvesoftware.Steam" in flatpak_check.stdout: - decky.logger.info("Flatpak Steam detected, adding filesystem access") - - subprocess.run([ - "flatpak", "override", "--user", - f"--filesystem={fgmod_path}", - "com.valvesoftware.Steam" - ], check=False, env=clean_env) - - decky.logger.info("Added Flatpak filesystem access") - return True - - return False - except Exception as e: - decky.logger.warning(f"Flatpak setup had issues (this is OK): {e}") - return False async def extract_static_optiscaler(self) -> dict: """Extract OptiScaler from the plugin's bin directory.""" @@ -255,10 +222,6 @@ class Plugin: "message": f"OptiScaler extraction failed: {extract_result.get('message', 'Unknown error')}" } - # Handle Flatpak compatibility - fgmod_path = Path(decky.HOME) / "fgmod" - self._setup_flatpak_compatibility(fgmod_path) - return { "status": "success", "output": "Successfully installed OptiScaler with all necessary components! You can now replace DLSS with FSR Frame Gen!" |
