Artix Linux Forum

Artix Linux => Applications & Software => Topic started by: dxrobertson on 07 June 2021, 02:50:36

Title: [SOLVED] Atril Settings in XFCE (Not Mate)
Post by: dxrobertson on 07 June 2021, 02:50:36
Installed XFCE ISO.   Atril used as PDF viewer, which I like and prefer. 

Where are the Atril settings stored?

 I run Atril, =>File; and  most recent PDFs accessed are displayed.  Then I open a PDF and Atril remembers the saved width setting for that PDF.  This is all well and good.  But I cant seem to find where these config settings are stored.  Searched in detail all files including hidden in home dir.

Where are they stored?

Title: Re: Atril Settings in XFCE (Not Mate)
Post by: nous on 07 June 2021, 11:20:41
~/.config/atril and /org/mate/atril in dconf-editor.
Title: Re: Atril Settings in XFCE (Not Mate)
Post by: dxrobertson on 07 June 2021, 12:48:53
I dont have ~/.config/atril .  But I was able to find some settings for Atril in dconf.  Thanks.
Title: Re: [SOLVED] Atril Settings in XFCE (Not Mate)
Post by: strajder on 07 June 2021, 21:42:08
Also read:
Code: [Select]
$ man find
$ man grep
In your case:
Code: [Select]
$ find ~ -name '*atril*'
would find all files in your home directory or subdirectories whose names contain the text "atril", and
Code: [Select]
$ grep -ri ~/* atril
would find all files in your home directory or subdirectories which contain the text "atril" inside them. There is also a much faster program similar to grep called ag in the package community/the_silver_searcher.

Bonus: The above grep command can be run in background with lower priority, and its output redirected to a file like this:
Code: [Select]
$ nice grep -ri ~/* atril >atril.found 2>/dev/null &
Title: Re: [SOLVED] Atril Settings in XFCE (Not Mate)
Post by: dxrobertson on 08 June 2021, 02:01:30
The problem was I dont have any files *atril* anything in home directory.  The settings in question ended up being in the dconf system (as pointed out by nous), which are stored in ~.config/dconf/user and are in some sort of binary format and use of dconf-editor can be used to view/change them.


Title: Re: [SOLVED] Atril Settings in XFCE (Not Mate)
Post by: strajder on 08 June 2021, 18:28:26
If a search string is in a binary file, the grep command will print something like:
Code: [Select]
grep: /home/strajder/.config/dconf/user: binary file matches