LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   gsettings - Monitor All System Settings Change (https://www.linuxquestions.org/questions/linux-newbie-8/gsettings-monitor-all-system-settings-change-4175677656/)

blueray 06-26-2020 02:41 AM

gsettings - Monitor All System Settings Change
 
Using gsetting, I can monitor a specific schema change.

Code:

$ gsettings list-schemas | grep sound
org.cinnamon.sounds
org.gnome.desktop.sound
org.mate.sound
org.cinnamon.desktop.sound
org.gnome.settings-daemon.plugins.sound
$ gsettings list-keys org.cinnamon.sounds
....
maximize-enabled
login-enabled
switch-enabled
....
$ gsettings get org.cinnamon.sounds login-enabled 
false
$ gsettings monitor org.cinnamon.sounds     
login-enabled: true
login-enabled: false

How, can I use gsettings to monitor all schema changes (the output I get from gsettings list-schemas) in my machine.

scasey 06-26-2020 07:32 PM

man gsettings
Probably the monitor command.

blueray 06-28-2020 11:23 AM

Yes, with the monitor command I can monitor one schema. However, I want to monitor all the schema.

Something like:
Code:

dconf watch /

verndog 06-28-2020 08:31 PM

Quote:

Originally Posted by scasey (Post 6138369)
man gsettings
Probably the monitor command.

I've used gsettings for a long time and never once thought of using man pages. I get my info by googling. Thanks!

scasey 06-28-2020 11:23 PM

Quote:

Originally Posted by verndog (Post 6139076)
I've used gsettings for a long time and never once thought of using man pages. I get my info by googling. Thanks!

When I’m not on my LInux box (as now) I put man <command> into the search engine. man pages are the definitive documentation.

scasey 06-28-2020 11:24 PM

Quote:

Originally Posted by blueray (Post 6138927)
Yes, with the monitor command I can monitor one schema. However, I want to monitor all the schema.

Something like:
Code:

dconf watch /

Create a script that executes the monitor command for each schema you want to monitor.

blueray 06-29-2020 02:48 AM

gsettings monitor takes one schema.

Code:

$ gsettings monitor org.x.pix.webalbums
It does not take multiple schema.

Code:

$ gsettings monitor org.x.pix.webalbums org.x.pix
No such key “org.x.pix”

How do you suggest I pass gsettings list-schemas output to gsettings monitor in the script?


All times are GMT -5. The time now is 10:59 PM.