AmatCoder / mednaffe

A front-end (GUI) for mednafen emulator
GNU General Public License v3.0
429 stars 35 forks source link

Symlinked folders inaccessible in 0.9.1 (Linux) #127

Open Trilkhai opened 3 years ago

Trilkhai commented 3 years ago

I'm in Linux, downloaded 0.9.1 as a Flatpak (after using 0.8.8 for years), and noticed after right away that it now seems impossible to select symlinked folders in the 'Add Folder' dialogue, which isn't the case in other GTK 3 programs on my system. (Oddly enough, the dialogue also refuses to acknowledge that /run/media exists on my system, so I can't use that to access my 'games' partition there, either.)

Screenshot_20210617_021024

In an effort to work around that, I added my home directory, looked at the new mednaffe.conf file to see how the new 'Dirs' entry works, and then edited the entry to point to the correct symlinked folder... That folder now does appear in the main Mednaffe dialog box, but none of the games are displayed. I double-checked the settings for the folder, and they appear to be correct.

Screenshot of Mednaffe 0.8.8 on the left, Mednaffe 0.9.1 on the right: Screenshot_20210617_020617

Is there any way around this?

(Edit: just wanted to add that I was thrilled to see that you're working on Mednaffe again, thank you!)

AmatCoder commented 3 years ago

Applications that are run with Flatpak have limited access to the host environment.

By default, Mednaffe as Flatpak only allows access to the user’s home directory. But users can override this with --filesystem=FILESYSTEM option. Examples:

flatpak --filesystem=host run com.github.AmatCoder.mednaffe

or if you only want access to /run/media: flatpak --filesystem=/run/media run com.github.AmatCoder.mednaffe

or even better, read-only: flatpak --filesystem=/run/media:ro run com.github.AmatCoder.mednaffe