WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: ?! How do I find where an application is storing its settings !?  (Read 1486 times)

Offline xor

  • Hero Member
  • *****
  • Posts: 1167
?! How do I find where an application is storing its settings !?

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 13848
Re: ?! How do I find where an application is storing its settings !?
« Reply #1 on: February 11, 2021, 01:07:12 AM »
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.

Offline mocore

  • Sr. Member
  • ****
  • Posts: 328
  • ~.~
Re: ?! How do I find where an application is storing its settings !?
« Reply #2 on: February 11, 2021, 10:16:41 AM »

Offline patrikg

  • Sr. Member
  • ****
  • Posts: 410
Re: ?! How do I find where an application is storing its settings !?
« Reply #3 on: February 12, 2021, 05:08:49 AM »
You can also install strace to trace the syscall open.
To see what files the program/app tries to open.

Code: (bash) [Select]
strace -e trace=open your-command-here

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 10210
Re: ?! How do I find where an application is storing its settings !?
« Reply #4 on: February 12, 2021, 08:17:04 AM »
Hi patrikg
That looks like a pretty handy command, so I decided to try it out. I entered:
Code: [Select]
strace -e trace=open editor Notes.txt
To my surprise, I got nothing. So I tried this:
Code: [Select]
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:
Code: [Select]
strace -e trace=open,openat editor Notes.txt
As of kernel version 5.6, there is now also an  openat2  syscall.

Offline patrikg

  • Sr. Member
  • ****
  • Posts: 410
Re: ?! How do I find where an application is storing its settings !?
« Reply #5 on: February 12, 2021, 11:46:59 PM »
Hi Rich.
Thank you, didn't know that.
Haven't used that command for a while.
But everyday you learn something.   :) :)

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 10210
Re: ?! How do I find where an application is storing its settings !?
« Reply #6 on: February 13, 2021, 07:41:28 AM »
Hi patrikg
Yup, you taught me something and I taught you something. That's a win win in my book. ;D