Root folders missing from File Browser
First and foremost consider this:
- Only RetroArch bugs should be filed here. Not core bugs or game bugs
- This is not a forum or a help section, this is strictly developer oriented
Description
On linux file browser doesn't recognise user created directories at / For example /test/dir
Expected behavior
File browser lists all dir's in / For example /bin /boot /dev /test
Actual behavior
Dir's in / are not shown in the file browser
Steps to reproduce the bug
- Install Retroarch via snap.
sudo snap install retroarch - Create a dir.
sudo mkdir /test - Launch retroarch
- Settings > Directories
- Edit directory and select /
Also tried
- running retroarch as sudo.
- checked chown on dir which is set to root:root
- uninstall/reinstall
- running as another user
- scanned code base looking for anything obvious that would limit the display of dir's
- searched past issues + forums all with no luck.
Bisect Results
Fresh install of Retroarch on Debian via SnapCraft.io.
Version/Commit
- RetroArch: 1.8.6
Environment information
- OS: Debian Buster
- Compiler: N.A
I just tried to sudo mkdir /test and it appears to me (from load content -> / option). Might it be because you're using a container or something like that?
Anyway don't ever run retroarch as sudo, unless you want 'fun' bugs involving the owner of files changing. Be warned that a least your playlists and configs changed owner right now and you could have problems with files that can't be deleted by normal retroarch as part of normal operations.
Since you mentioned that you're using the snap package, I suspect this is related to snap permissions/sandboxing. EDIT: hmm, I use VLC in a snap and it seems able to see inside / with no problem.
I too believe it's a snap issue. I was unaware how snap actually worked and it looks like it creates a container for each snap install with the developer determining which interfaces are available to the snap (i.e. network, removable-media, system-folder, home) . I don't believe this is related to super user.
The snap install installs in strict mode which does limit the system folders. If the developer supplies a classic install then snap can install it with snap install retroarch --classic which may resolve the issue however retroarch does not supply this. The flag --devmode may resolve this but some snap benefits are lost.
The rationale for using snap was Debian Buster fails to install due to failed dependencies.
The use case of using system folders for snap installs is probably low and may be resolved if the developer supplies a classic install or compiling retroarch. Eventually I'll try compile but I hate to think of the issues Debian will though up thanks to its stable packages.
Agree. Seems a snap issue. Something similar with VLC from Snap also happens, not allowing Snap to find a folder from a mounted directory over a secondary storage device.