flathub / com.dec05eba.gpu_screen_recorder

https://flathub.org/apps/details/com.dec05eba.gpu_screen_recorder
14 stars 4 forks source link

exact needed filesystem permissions? #117

Closed boredsquirrel closed 5 months ago

boredsquirrel commented 5 months ago

the app does not work when removing host:rw filesystem permissions.

What exact directories is required?

dec05eba commented 5 months ago

When you select the directory to save the video to that gives the application access to that directory without any special permissions, but the recording application is a separate binary from the gui and that runs as a child process and flatpak doesn't support sharing permissions with child processes (I dont know why flatpak doesn't support this). That means full host:rw filesystem permission is required to save the video since the user can select any directory to save the video.

boredsquirrel commented 5 months ago

hmm, it didnt use a portal for saving, it used a normal GTK filepicker and only showed the directory that I gave it access to.

You know what you do, so I suppose this issue cannot be solved?

dec05eba commented 5 months ago

Yeah it cant be solved unless flatpak makes it possible to share permissions with child processes or unless I put the programs into the same process, but I cant do that right now because of nvidia driver bugs that makes the process freeze when you stop recording.

boredsquirrel commented 5 months ago

thanks for the explanation!