jonniek / mpv-filenavigator

Navigate and open your local files in mpv
The Unlicense
69 stars 9 forks source link

Set default path to HOME environment variable #7

Closed goetzc closed 6 years ago

goetzc commented 6 years ago

This changes the default path to use the users HOME environment variables value, instead of /.

Cheers

jonniek commented 6 years ago

If the variable is not defined, the call returns nil

Maybe add a fallback os.getenv("HOME") or '/'

Also I think the comment could be improved to something like --fallback if no file is open - should be a string that points to a path in your system

goetzc commented 6 years ago

If the variable is not defined, the call returns nil Maybe add a fallback os.getenv("HOME") or '/'

Haven't seen such a case, but I just added it.