mapitman / mdview

Convert markdown to HTML and launch it in a browser.
MIT License
26 stars 8 forks source link

Panic permission denied #32

Closed i-n-g-m-a-r closed 1 day ago

i-n-g-m-a-r commented 1 month ago
$ mdview  foobar.md 
panic: open foobar.md: permission denied

goroutine 1 [running]:
main.check(...)
    /build/mdview/parts/mdview/build/main.go:116
main.main()
    /build/mdview/parts/mdview/build/main.go:49 +0x70b
mapitman commented 1 month ago

How did you install mdview and which version is it?

i-n-g-m-a-r commented 1 month ago

How did you install mdview and which version is it?

sudo snap install mdview 1.6.2

mapitman commented 2 days ago

Sorry it's taken so long to get back to you. I've had some personal/family issues going on.

This is what happens when you try to open a file outside of your home directory. Snaps are strictly confined and I am only adding the home interface as part of the snap creation.

If you would like to use it for files anywhere on your system, you can either use deb-get to install mdview or download the latest deb package and install it manually.

mapitman commented 1 day ago

Reopening. I'll see if I can add a more descriptive error message.