Questions about using gsettings, the command-line version of dconf-editor, to read or modify the dconf database. Using gsettings, the schemas and keys of various programs can be viewed and altered. Sometimes hidden settings (that are not in the gui of a program) can be discovered this way.

learn more… | top users | synonyms

38
votes
2answers
10k views

Gconf, Dconf, Gsettings and the relationship between them

I'm trying to understand how Gconf, Dconf and Gsettings works and what the relationship is between them. All I know is: Gconf - XML based database (backend system). The older one. Dconf - BLOB ...
35
votes
3answers
55k views

What is dconf, what is its function, and how do I use it?

Mark Shuttleworth recently blogged about the decision to include the Qt libraries in the 11.10 release, with a followup from Jono Bacon. Mark states that the biggest challenge to integrating apps ...
26
votes
1answer
26k views

Graphical editor for GSettings/dconf?

Is there an equivalent to gconf-editor for GSettings/dconf? I know that I can use gsettings set ... on the command line, but that's a bit inconvenient (especially with list types).
18
votes
1answer
13k views

Shouldn't dconf-editor and gsettings access the same database?

This is a basically 'academic' question --- to try to understand better the configuration system innards. I understand that the dconf system is the new configuration system in gnome3 that has ...
16
votes
1answer
13k views

How can I enable/disable Dash online results programmatically?

How can I change this setting from a Bash script? My plan is to enable it only on certain network connections.
13
votes
1answer
3k views

How to add a key to an empty schema? [closed]

I would like to automate setting some settings, specifically add some keyboard shortcuts to ~/.config/dconf/user. Here is how it looks in dconf-editor: Now gsettings (or dconf) can list the ...
12
votes
2answers
15k views

How to change Gsettings via remote shell?

I need to automate desktop configuration via Puppet, virtual terminal or ssh. Unfortunately, invocation of gsettings via ssh or virtual terminal gives: gsettings set org.compiz.core:/org/compiz/...
10
votes
2answers
4k views

Where can I get a list of SCHEMA / PATH / KEY to use with gsettings?

After doing some research, I found that I can quickly set configuration options using the gsettings command in the terminal, instead of installing dconf-editor or gconf-editor or CCSM. But we need ...
9
votes
2answers
2k views

change gsettings without running X and Unity

I am trying to change some gconf settings in Ubuntu 12.10. I would like to change the lightdm greeter background. I have discovered that while logged in to unity as a user while running X server, I ...
9
votes
1answer
7k views

How can I change default settings for new users?

Every key in the DConf database has a default value that is used when user accounts are created. How can I change these default values?
8
votes
1answer
3k views

How can I install a Gsettings Schema without root privileges?

The typical workflow to install a Gsettings Schema is this: Create a schema, with the extension .gschema.xml, with contents like this: <?xml version="1.0" encoding="UTF-8"?> <schemalist>...
8
votes
1answer
3k views

One line command for adding new items to com.canonical.Unity.Panel systray-whitelist

This is more of a how to use command line instruction question more than how to add items to the Unity notification panel. I have to have a one line CLI to add a new item to com.canonical.Unity.Panel ...
8
votes
2answers
2k views

Gsettings and dconf

Hello I need to set a hotkey in ubuntu 12.10, I use: gsettings(dconf) gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/...
7
votes
2answers
11k views

gsettings not working over ssh [duplicate]

I'm trying to change Unity Launcher icons on a remote computer with command: gsettings set com.canonical.Unity.Launcher favorites ... and it works perfectly But when I do ssh 127.0.0.1 gsettings ...
7
votes
1answer
3k views

Editing gsettings; add icon to launcher by command

Although there are several posts on the Internet on the subject, I did not find a solution yet: my goal is to find a command that adds an icon (.desktop file) to the Unity launcher and shows it ...
7
votes
1answer
1k views

Are dconf schema names case-sensitive?

I have found an example of a schema that is referred two in two different ways, differing only in case, which is confusing to me. Gsettings sees the schema name as com.canonical.Unity.Launcher, and ...
6
votes
2answers
1k views

Creating Ubuntu Live CD with customized Unity launcher

I would like to create a custom Ubuntu image based on Natty using Ubuntu Customization Kit. I also want to customize the icons appearing on the Unity Launcher. I can change the icons on my desktop ...
5
votes
5answers
5k views

gtk-key-theme Emacs: what keystroke is for select-all?

I prefer emacs keystrokes, but select-all doesn't seem to be part of the emacs vocabulary, or at least, the gtk-key-theme for emacs. M-w isn't working to copy the selected region. What's the ...
5
votes
1answer
680 views

How to dump all the manully altered gsettings keys?

The dconf Editor indicate the keys whose values have been altered by the user by changing the key's font to bold as shown in the snapshot. So I wonder if there is a way to dump all the keys (...
5
votes
3answers
1k views

Problem with setting wallpaper using gsettings

I used gsettings set org.gnome.desktop.background picture-uri 'file://PathToImage' to set an image as a wallpaper as suggested in this answer. This does not do the job properly. For today's bing image,...
5
votes
2answers
2k views

How to read default key value with dconf or gsettings?

I would like to know the default value of a dconf/gsettings key. My question is a followup of the question below: Where can I get a list of SCHEMA / PATH / KEY to use with gsettings? What I'm trying ...
5
votes
3answers
7k views

How can I install gsettings schema via a gnome shell extension?

I started to write my own Gnome Shell Extensions and can't find any answer to this question -> is there any way, how to install gsettings schema on machine just via extension code (e.g. not copying ...
5
votes
1answer
644 views

Can commercial applications use Gsettings?

According to specified technical requirements, a commercial application must be self‑contained in a single directory (which I agree is a good requirement), and use ~/.config/<app-name> for its ...
4
votes
3answers
4k views

My dconf/gsettings installation is broken. How can I fix it without Ubuntu reinstall?

I run Ubuntu 12.04.1 LTS x64 in VirtualBox. After one very unfortunate misclick (reset saved state instead of load saved state) I got a very annoying problem. Almost all applications (unity, synaptic,...
4
votes
1answer
553 views

How to change gnome-terminal profile preferences using dconf or gsettings?

After upgrading form Ubuntu 14.10 to 15.10, it seems that changing gnome-terminal preferences using gconftool-2 is no longer supported. I guess this issue is related the Gconf to GSettings migration. ...
4
votes
1answer
601 views

Editing Gsettings unsuccesful when initiated from cron

I must have a blind spot, but I cannot find what it is. I made a small python script that removes VLC from the sound menu. It runs perfectly in any way I run it from the terminal or from a launcher ...
4
votes
1answer
581 views

Add a custom keybinding with gsettings in ubuntu

I can modify existing custom keybindings like this: gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/...
4
votes
1answer
2k views

How can I make the battery icon appear in my gnome-3 panel only when charging or discharging?

I am using ubuntu 11.10. There was an option for the same in 11.04. I found a suggestion listed here. Unfortunately, it does'nt work. $ GSETTINGS_BACKEND=dconf gsettings set org.gnome.power-...
3
votes
4answers
445 views

“rm” doesn't accept internal command as a paramter

Why doesn't this work? rm $(gsettings get org.gnome.desktop.background picture-uri | awk '{gsub("file://","");print $0}') rm: cannot remove `\'/home/foggy/obrazky/wallpapers/24/...
3
votes
4answers
1k views

Disabling gedit backup files (filename~ tilde)

How can I get the following command to change for the root user as well? gsettings set org.gnome.gedit.preferences.editor create-backup-copy false This command should disable gedit backup files. ...
3
votes
1answer
1k views

How do I change the window theme using bash?

In Ubuntu 12.04, how will I be able to set the gnome window theme with a bash command? This no longer works (it used to in the previous releases) gconftool-2 --set --type string /apps/metacity/...
3
votes
1answer
142 views

Background not changing using gsettings from cron

I'm trying to change my wallpaper to a random image using Indrajith Indraprastham's suggested script here: How to change desktop background from command line in Unity? When I run the script from a ...
3
votes
1answer
380 views

How can I read GSettings values from a filesystem backup?

I have a complete filesystem backup from an old Ubuntu installation. I'd like to retrieve some data from it that was stored via GSettings, e.g. my old GNOME Terminal color selections or the commands ...
3
votes
1answer
6k views

How to set gtk-style and background in GDM3

I'm triyng to set a different GTk-theme and background for GDM3 (using ubuntu 11.04 and GNOME3 PPA). As far As I have seen, the GTK-theme used by gdm is exactly the one stored into Gsettings > org....
3
votes
2answers
110 views

How to show spreedX client ApplicationIndicator?

For my job I require the use of the spreedX client which allows me to share my desktop when using the Spreed web conferencing environment (www.spreed.com). In pre-Unity Ubuntu versions, this ...
3
votes
1answer
380 views

How can I get Summary and Description of Schema using gsettings

I prefer to use gsettings over dconf-editor because dconf-editor lacks of command-line options to go to a schema directly (eg. I have to do "org - click - gnome -click - settings-daemon - click - ...
3
votes
1answer
51 views

Why doesn't gsettings work in tmux?

I'm trying to change various dconf settings with gsettings. For some reason, it only works when I'm not in tmux. I can read settings within tmux, but setting them fails silently - it appears to work, ...
3
votes
1answer
763 views

How to run `gsettings set` in chroot? [duplicate]

I ran the following command in chroot environment without X: gsettings set org.gnome.desktop.a11y.applications screen-reader-enabled true I get the following error message: (process:8290): WARNING *...
3
votes
1answer
52 views

gsettings: no change after configuring settings

I have a system running Ubuntu 14.04.1. I would like to set the proxy settings globally via gsettings, but unfortunately I can't seem to change anything. I run the following command as root: ...
3
votes
1answer
98 views

How does one get tab-completion in gsettings from zsh?

I notice that when using the bash shell (for example) the gsettings command has tab-completion; but when I use the Z shell (zsh) gsettings has no tab-completion. How can I enable it?
3
votes
1answer
1k views

Why Gsettings isn't enough to reset my nautilus settings?

I'm trying to narrow down a bug (to eventually report it or give up if it'll turn out that resetting a simple setting will be enough to get rid of it) I noticed that with a brand new user the bug ...
3
votes
0answers
128 views

More than 12 custom key bindings in Ubuntu Mate

Using gsettings or dconf-editor, one may set 12 general purpose keys to arbitrary commands in Ubuntu Mate 14 (in the schema org.mate.Marco.global-keybindings, keys run-command-1 through run-command-12)...
3
votes
2answers
212 views

Sort Unity Launcher icons alphabetically

I like to keep my locked Launcher applications sorted alphabetically, and I was wondering if it would be possible to write a script that sorts them, so I don't have to do it myself every time I add a ...
3
votes
3answers
420 views

gsettings and anacron

I wrote a script to change my desktop background. I want this script to run on anacron because I often turn my computer off at night. I've tested parts of the script, and I think the problem is with ...
3
votes
2answers
463 views

gsettings key not listed in dconf

I wonder why in my beta of 12.10. the gsettings key com.canonical.indicator.session is not listed in dconf-editor. I can switch the value via: gsettings set com.canonical.indicator.session suppress-...
3
votes
2answers
305 views

How to alter touchpad settings on Ubuntu GNOME 16.04?

After upgrading to Ubuntu GNOME 16.04 with GNOME 3.20 I have found that if I tap my touchpad it clicks which is something I do not want due to a faulty touchpad, previously I was able to disable this ...
2
votes
1answer
607 views

How to remove element from gsettings array in script?

Array in dbus/gsettings has a format [element1, element2, element3, ...]. Gsettings' interface allows only replacing existing array with another, so for instance, adding another item element can be ...
2
votes
1answer
2k views

How to use gsettings when there is no schema listed

I'm wanting to write a script to reorder the loading of compiz modules, so while using the Unity desktop, expo and scale are loaded last and the set hotcorners in those plugins, will remain active ...
2
votes
1answer
68 views

Automate unity launcher icon ordering

I have written an install script which automates my install process. Afterwards I would like it to rearrange/add/remove the icons to the unity launcher. Using dconf watch / I can see output as I ...
2
votes
1answer
103 views

which gsettings schema controls “show my login name in the menu bar”?

I would like to script the enabling of Ubuntu's "show my login name in the menu bar". The checkbox lives in the GUI under System Settings > User Accounts. I assume this can be scripted using ...