tstack / lnav

Log file navigator
http://lnav.org
BSD 2-Clause "Simplified" License
7.83k stars 312 forks source link

Can't open files in /tmp #1256

Open Tejeev opened 5 months ago

Tejeev commented 5 months ago

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
tstack commented 5 months ago

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

Tejeev commented 5 months ago

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.