LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-26-2020, 02:41 AM   #1
blueray
Member
 
Registered: Feb 2020
Location: Bangladesh
Distribution: Debian, Ubuntu, Linux Mint
Posts: 136

Rep: Reputation: 2
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.
 
Old 06-26-2020, 07:32 PM   #2
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,768

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
man gsettings
Probably the monitor command.
 
1 members found this post helpful.
Old 06-28-2020, 11:23 AM   #3
blueray
Member
 
Registered: Feb 2020
Location: Bangladesh
Distribution: Debian, Ubuntu, Linux Mint
Posts: 136

Original Poster
Rep: Reputation: 2
Yes, with the monitor command I can monitor one schema. However, I want to monitor all the schema.

Something like:
Code:
dconf watch /
 
Old 06-28-2020, 08:31 PM   #4
verndog
Member
 
Registered: Oct 2007
Posts: 279

Rep: Reputation: 68
Quote:
Originally Posted by scasey View Post
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!
 
Old 06-28-2020, 11:23 PM   #5
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,768

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
Quote:
Originally Posted by verndog View Post
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.
 
Old 06-28-2020, 11:24 PM   #6
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,768

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
Quote:
Originally Posted by blueray View Post
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.
 
1 members found this post helpful.
Old 06-29-2020, 02:48 AM   #7
blueray
Member
 
Registered: Feb 2020
Location: Bangladesh
Distribution: Debian, Ubuntu, Linux Mint
Posts: 136

Original Poster
Rep: Reputation: 2
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?
 
  


Reply

Tags
command line interface, dconf


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Configure Touchpad Settings Using gsettings Commandline Utility On Linux LXer Syndicated Linux News 0 10-12-2019 06:12 PM
[Wheezy]: gsettings config file horizn Debian 1 07-10-2015 01:39 PM
[SOLVED] Compiz 0.9.11 ignoring GSettings; only launches core ordealbyfire83 Linux - Software 1 10-27-2014 06:54 PM
[SOLVED] network settings "your system is not supported" at system settings windstory Linux - Newbie 14 11-29-2011 01:14 AM
Switch from 17" monitor to 15" monitor. Need to know how to change settings. DoThatPlan Linux - Hardware 1 04-14-2004 08:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:12 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration