lnav icon indicating copy to clipboard operation
lnav copied to clipboard

Can't open files in /tmp

Open Tejeev opened this issue 10 months ago • 2 comments

lnav version v0.11.2

Describe the bug If you try to open a file in /tmp lnav complains that it does not exist

/tmp/test$ lnav test.log 
✘ error: unable to open file: test.log
 reason: No such file or directory
tmp/test$ vim test.log
(works fine)

To Reproduce

  1. Create a file anywhere in /tmp
  2. Try to open it with lnav

Tejeev avatar Apr 12 '24 17:04 Tejeev

Was lnav installed through the snap? It might be due to the sandboxing.

tstack avatar Apr 16 '24 13:04 tstack

aah. Yeah, I installed it through the snap because the apt repo seemed to stop getting updates a while back. That explains it. Do you know if there is a way to allow lnav snap access to tmp? I suppose we'd have to do it manually ourselves, but that's fine for now.

Tejeev avatar May 03 '24 23:05 Tejeev