minbrowser / min

A fast, minimal browser that protects your privacy
https://minbrowser.org/
Apache License 2.0
8.02k stars 712 forks source link

Can't view contents of local directory #1594

Open reikred opened 3 years ago

reikred commented 3 years ago

The title says it all. I try typing in file:///path/to/somefile and it does not work. Should it not? Am I doing something wrong.

Bonus question: Command line "min file:///path/to/somefile " ought to work as well.

PalmerAL commented 3 years ago

This should work already; can you be more specific about what path you're typing? And what happens when you enter that path?

reikred commented 3 years ago

I just checked again, and typing in file:///home/myuser does not work. Firefox has no problems with it. The error message is

An error occurred (-6) Try again

Version: 1.14.1-1 AND version 1.19.2 UPDATE I updated to version 1.19.2 and the bug is still there Platform: linux ubuntu 20.04


Maybe unrelated, maybe not: I also see an error message in the terminal:

Error: ENOENT: no such file or directory, open '/home/myuser/.config/Min/settings.json'

This error message goes away if I do

touch /home/myuser/.config/Min/settings.json

This behavior could be more robust.

PalmerAL commented 3 years ago

Oh, I see what you mean. Opening an individual file should work, but if you open a directory, we don't show a list of files in it like Chrome / Firefox do.

reikred commented 3 years ago

Yes, I see now. Opening an individual html file does work, as in

min file://path/to/somefile.html min file://pwd/somefile.html

"Would be nice" if directories worked as well, but being minimalist is also a nice objective ;-). Thanks.