File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ install
15
15
__pycache__
16
16
* .pyc
17
17
* .gresource
18
+ .frun
18
19
19
20
# IDEs / editors
20
21
.idea
Original file line number Diff line number Diff line change @@ -13,6 +13,8 @@ import {
13
13
isDeviceInputOverrideAvailable ,
14
14
} from "../flatpak.js" ;
15
15
16
+ const device = isDeviceInputOverrideAvailable ( ) ? "input" : "all" ;
17
+
16
18
const action_permissions = new Gio . SimpleAction ( {
17
19
name : "permissions" ,
18
20
parameter_type : null ,
@@ -29,7 +31,6 @@ export function Permissions({ window }) {
29
31
30
32
picture_illustration . set_resource ( illustration ) ;
31
33
32
- const device = isDeviceInputOverrideAvailable ( ) ? "input" : "all" ;
33
34
label_command . label = `flatpak override --user --share=network --socket=pulseaudio --device=${ device } ${ getFlatpakId ( ) } ` ;
34
35
action_row_device . title = `--input=${ device } ` ;
35
36
@@ -57,7 +58,7 @@ const missing_permissions = (() => {
57
58
return (
58
59
! shared . includes ( "network" ) ||
59
60
! sockets . includes ( "pulseaudio" ) ||
60
- ! devices . includes ( "all" )
61
+ ! devices . includes ( device )
61
62
) ;
62
63
} ) ( ) ;
63
64
You can’t perform that action at this time.
0 commit comments