Hi patrikg
That looks like a pretty handy command, so I decided to try it out. I entered:
strace -e trace=open editor Notes.txt
To my surprise, I got nothing. So I tried this:
strace -e trace=open editor Notes.txt | grep -i open
It turns out there's an openat syscall that was being used instead. Changing it to this works:
strace -e trace=open,openat editor Notes.txt
As of kernel version 5.6, there is now also an openat2 syscall.