Skip to content

Commit 156186b

Browse files
committed
Fix permissions dialog
Closes #996
1 parent e97114e commit 156186b

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ install
1515
__pycache__
1616
*.pyc
1717
*.gresource
18+
.frun
1819

1920
# IDEs / editors
2021
.idea

src/Permissions/Permissions.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ import {
1313
isDeviceInputOverrideAvailable,
1414
} from "../flatpak.js";
1515

16+
const device = isDeviceInputOverrideAvailable() ? "input" : "all";
17+
1618
const action_permissions = new Gio.SimpleAction({
1719
name: "permissions",
1820
parameter_type: null,
@@ -29,7 +31,6 @@ export function Permissions({ window }) {
2931

3032
picture_illustration.set_resource(illustration);
3133

32-
const device = isDeviceInputOverrideAvailable() ? "input" : "all";
3334
label_command.label = `flatpak override --user --share=network --socket=pulseaudio --device=${device} ${getFlatpakId()}`;
3435
action_row_device.title = `--input=${device}`;
3536

@@ -57,7 +58,7 @@ const missing_permissions = (() => {
5758
return (
5859
!shared.includes("network") ||
5960
!sockets.includes("pulseaudio") ||
60-
!devices.includes("all")
61+
!devices.includes(device)
6162
);
6263
})();
6364

0 commit comments

Comments
 (0)