File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ install
1515__pycache__
1616* .pyc
1717* .gresource
18+ .frun
1819
1920# IDEs / editors
2021.idea
Original file line number Diff line number Diff line change @@ -13,6 +13,8 @@ import {
1313 isDeviceInputOverrideAvailable ,
1414} from "../flatpak.js" ;
1515
16+ const device = isDeviceInputOverrideAvailable ( ) ? "input" : "all" ;
17+
1618const 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
You can’t perform that action at this time.
0 commit comments