summarylogtreecommitdiffstats
path: root/flet-linux.patch
blob: 8b5bd3577bad95fbc80766b102872d1650443da0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/sdk/python/packages/flet-desktop/src/flet_desktop/__init__.py b/sdk/python/packages/flet-desktop/src/flet_desktop/__init__.py
index ae1474c..990387b 100644
--- a/sdk/python/packages/flet-desktop/src/flet_desktop/__init__.py
+++ b/sdk/python/packages/flet-desktop/src/flet_desktop/__init__.py
@@ -673,6 +673,9 @@ def __locate_and_unpack_flet_view(page_url, assets_dir, hidden):
         app_path = temp_flet_dir.joinpath(app_name)
         args = ["open", str(app_path), "-n", "-W", "--args", page_url, pid_file]
     elif is_linux():
+        app_path = "/usr/bin/flet_view"
+        args = [str(app_path), page_url, pid_file]
+    elif 0:
         # build version-specific path to flet folder
         temp_flet_dir = Path.home().joinpath(".flet", "bin", f"flet-{version.version}")