Skip to content

Commit

Permalink
maybe fix flatpak
Browse files Browse the repository at this point in the history
  • Loading branch information
TNTwise committed Aug 31, 2024
1 parent 0446c8e commit 7ca5f1b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Backendhandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def setupBackendDeps(self):
from .DownloadDeps import DownloadDependencies

downloadDependencies = DownloadDependencies()
#downloadDependencies.downloadBackend(version)
downloadDependencies.downloadBackend(version)
if not checkIfDeps():
# Dont flip these due to shitty code!
downloadDependencies.downloadFFMpeg()
Expand Down
10 changes: 7 additions & 3 deletions src/Util.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,14 @@
import cpuinfo
import distro
import webbrowser


cwd = os.getcwd()
home_dir = os.path.expanduser("~")
def isFlatpak():
return "FLATPAK_ID" in os.environ
if isFlatpak():
cwd = os.path.join(os.path.expanduser("~"), ".var", "app", "io.github.tntwise.REAL-Video-EnhancerV2")
else:
cwd = os.getcwd()

with open(os.path.join(cwd, "frontend_log.txt"), "w") as f:
pass

Expand Down

0 comments on commit 7ca5f1b

Please sign in to comment.