summarylogtreecommitdiffstats
path: root/workbench-flatpak-permissions.patch
blob: e61474c65096fb70a0876a609753c2281727fb35 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
From ec018bcd37f42ad7a37c868ff0d623f64a26b037 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ball=C3=B3=20Gy=C3=B6rgy?= <ballogyor@gmail.com>
Date: Sat, 23 Nov 2024 14:05:27 +0100
Subject: [PATCH] Don't check for missing Flatpak permissions

---
 src/Permissions/Permissions.js | 16 +---------------
 src/window.blp                 |  5 -----
 2 files changed, 1 insertion(+), 20 deletions(-)

diff --git a/src/Permissions/Permissions.js b/src/Permissions/Permissions.js
index c0561b5..5352430 100644
--- a/src/Permissions/Permissions.js
+++ b/src/Permissions/Permissions.js
@@ -39,22 +39,8 @@ export function Permissions({ window }) {
   window.add_action(action_permissions);
 }
 
-const missing_permissions = (() => {
-  const flatpak_info = getFlatpakInfo();
-  const shared = flatpak_info.get_string_list("Context", "shared");
-  const sockets = flatpak_info.get_string_list("Context", "sockets");
-  const devices = flatpak_info.get_string_list("Context", "devices");
-
-  return (
-    !shared.includes("network") ||
-    !sockets.includes("pulseaudio") ||
-    !devices.includes("all")
-  );
-})();
-
 export function needsAdditionalPermissions({ demo }) {
-  if (!demo["flatpak-finish-args"]) return false;
-  return missing_permissions;
+  return false;
 }
 
 export function showPermissionsDialog({ window }) {
diff --git a/src/window.blp b/src/window.blp
index 863302f..a620f81 100644
--- a/src/window.blp
+++ b/src/window.blp
@@ -692,11 +692,6 @@ menu menu_app {
     action: "win.extensions";
   }
 
-  item {
-    label: _("Permissions");
-    action: "win.permissions";
-  }
-
   section {
     item {
       label: _("Reveal in Files");
-- 
2.47.0