Tiny Core Linux
Tiny Core Extensions => TCE Q&A Forum => Topic started by: xor on February 11, 2021, 12:36:30 AM
-
?! How do I find where an application is storing its settings !?
-
Look under /home/tc, /home/tc/.config or /usr/local/etc - if it's a gtk3 app, you could look with dconf-editor.
You could also take a look at the app's documentation.
-
perhaps with lsof
https://en.wikipedia.org/wiki/Lsof
-
You can also install strace to trace the syscall open.
To see what files the program/app tries to open.
strace -e trace=open your-command-here
-
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.
-
Hi Rich.
Thank you, didn't know that.
Haven't used that command for a while.
But everyday you learn something. :) :)
-
Hi patrikg
Yup, you taught me something and I taught you something. That's a win win in my book. ;D