Youda008 / DoomRunner

Preset-oriented graphical launcher of various ported Doom engines (an alternative to ZDL)
GNU General Public License v3.0
240 stars 18 forks source link

[Linux] Program isn't recognizing subdirectories of ~/home/[user] #177

Open ProfBV opened 3 months ago

ProfBV commented 3 months ago

Hi,

I'm trying to add a new engine (Woof!) that's located in ~/home/[user]/AppImages. When I open the initial setup window and try to navigate to the directory to add the engine, ~/home/[user] doesn't show any subdirectories in the file browser.

When checking the option to show hidden files, I can only see hidden directories containing files for DoomRunner, Flatpak, and GZDoom (my other engine). How should permissions be set so that all the subdirectories are shown?

yum13241 commented 2 months ago

Turn on "Use absolute paths". Also, if you're using the Flatpak, give it access to your filesystem with a command I forgot or using FlatSeal.

Youda008 commented 6 days ago

Hi. That seems to be a problem with Flatpak. If you run any application via Flatpak, it does not have permissions to access any other files outside of its sandbox directory by default. You must somehow add this permission to DoomRunner. Maybe @mbugni knows more?

mbugni commented 5 days ago

Hi @ProfBV , first, please take a look at this README. The section advanced usage should help you to setup an engine outside the sandbox.

Then, if you want to allow access files in your home directory, you can use the following command:

flatpak --user override io.github.Youda008.DoomRunner --filesystem=home 

The --filesystem option allows you to select a more specific folder, or restrict access (eg read-only), see filesystem access.