summarylogtreecommitdiffstats
path: root/flet-linux.patch
blob: 52eceb031b56147d8804dc6d465ff7e4992ef7c0 (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 ddc100df..2b43e1e6 100644
--- a/sdk/python/packages/flet-desktop/src/flet_desktop/__init__.py
+++ b/sdk/python/packages/flet-desktop/src/flet_desktop/__init__.py
@@ -151,6 +151,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:
         app_path = None
         # try loading Flet client built with the latest run of `flet build`
         build_linux = os.path.join(os.getcwd(), "build", "linux")