Skip to content

Commit

Permalink
Explain how to view Gsettings settings on the command line
Browse files Browse the repository at this point in the history
  • Loading branch information
ntc2 committed Dec 24, 2018
1 parent 67e2fd2 commit 4cb62e3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/fluxgui/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,14 @@ def temperature_to_key(temperature):
class Settings(object):

def __init__(self):
# You can use
#
# gsettings [--schema-dir .] list-recursively apps.fluxgui
#
# to see current settings on command line. The '--schema-dir'
# is necessary if you're using a non-standard schema dir,
# e.g. when running fluxgui from the repo without installing
# it.
self.settings = Gio.Settings.new('apps.fluxgui')

self._color = self.settings.get_string("colortemp")
Expand Down

0 comments on commit 4cb62e3

Please sign in to comment.