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

2
votes
2answers
406 views

How can I switch between 12 hour and 24 hour format in command line?

I am in a learning phase. I could not find the command to change my time format from 12 hour to 24 hour. Can anyone please help me with this? Thank you!!
1
vote
1answer
38 views

How can I find a specific custom key binding via its name?

i can retrieve the list of custom key bindings by: gsettings get org.gnome.settings-daemon.plugins.media-keys custom-keybindings which return something like: ['/org/gnome/settings-daemon/plugins/...
1
vote
0answers
20 views

Changes via Gio.Settings don't take effect

As the title suggests, I am trying to alter gsettings via python's Gio module on Ubuntu 16.04 LTS ( a user over at Unix & Linux site said the script bellow works on Arch, so it may be Ubuntu-...
0
votes
1answer
85 views

I can't put icons on Ubuntu 16.04 gnome-fallback desktop

I am running Ubuntu 16.04 Gnome, but using Gnome-fallback (metacity). I can't drag and drop icons from the application pull-down menu, but when I copied my backup from my external hard drive, which ...
1
vote
3answers
47 views

gsettings or dconf value list for a key

I want to list all the values available for the screensaver: dconf list /org/cinnamon/desktop/screensaver/ | grep matrix
4
votes
2answers
719 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 ...
3
votes
1answer
61 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: ...
1
vote
0answers
71 views

Scripting dconf changes

I've written a simple script for our Ubuntu machines at college which sets some dconf overrides to set the theme, background etc. However I cannot seem to get it to correctly set the login screen ...
0
votes
1answer
67 views

How to fix a broken gsettings setting without gnome-session?

Using Gnome on 16.04 I slipped up on the command line and killed Gnome. It now won't start - just goes back to gdm! How can I restore the setting? I've tried using gsettings from the command line on ...
0
votes
0answers
53 views

How to **really** empty dconf com.canonical.Unity.Launcher favorites?

I want to completely, unconditionally remove all icons from Unity Launcher, so that no icons are ever displayed there. For that, I found out that dconf setting with the key of com.canonical.Unity....
0
votes
1answer
85 views

How to permanentaly unlock partitions from launcher in 16.04

I tried to unlock partitions from launcher, but it keeps appearing after every reboot. Is there any good way to permanently remove partitions from launcher? This is happening only on Ubuntu 16.04
2
votes
1answer
84 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 ...
0
votes
1answer
185 views

gsettings - change privacy settings via command line

I know how to change privacy settings via GUI (System Settings > Security & Privacy), but I'd like to be able to do it from command line. What I did to find out I ran the command: dconf watch /...
1
vote
3answers
133 views

gsettings set org.gnome.desktop.background not working

I am trying to download a daily picture and set it as my background image with: #!/bin/bash # clear cache PICS="/home/pvlkmrv/Pictures" rm -f ${PICS}/wall.jpg rm -f ${PICS}/photo-of-the-day # ...
3
votes
1answer
166 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 ...
4
votes
1answer
737 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. ...
3
votes
1answer
55 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, ...
1
vote
1answer
42 views

Adding a partition (device) back to the launcher

I am new to Ubuntu and I unknowingly removed the shortcut to the drives and partitions from the launcher as it was totally cluttered initially. But now I'm having trouble accessing files and folders ...
0
votes
0answers
109 views

Editing Gsettings from Cron via script doesn't work

So, I'm trying to change my theme from a light to a dark version in the evening, and vica versa in the morning. However, Gsettings doesn't work from Cron, and the solutions posted here and here don't ...
3
votes
0answers
147 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)...
1
vote
0answers
60 views

How do I display X keyboard layout?

In Ubuntu 14.04, I am switching keyboard layouts with X: gsettings set org.gnome.settings-daemon.plugins.keyboard active false setxkbmap -layout "us,ru" -option "grp:ctrl_shift_toggle,grp_led:scroll,...
1
vote
0answers
3k views

Resolution Scaling on 4k Laptop

I've tried following directions at https://wiki.archlinux.org/index.php/HiDPI and http://www.makeuseof.com/tag/linux-hidpi-support-for-gnome-kde-xfce-cinnamon-and-firefox/ to make my Ubuntu ...
2
votes
1answer
108 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 ...
0
votes
1answer
96 views

custom-keybindings not found

When I tried to list the available custom keybindings using gsettings command gsettings get org.gnome.settings-daemon.plugins.media-keys custom-keybindings I got the error message saying, No such ...
3
votes
1answer
107 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
2answers
227 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 ...
2
votes
1answer
191 views

Why do I only get half a desktop wallpaper?

I've created a neat little script that downloads a JPG using wgetand then sets it as the Unity desktop background with gsettings set org.gnome.desktop.background picture-uri file:///home/myname/...
0
votes
2answers
444 views

What is overriding the systemwide keyboard layout settings?

I have [org.gnome.desktop.input-sources] sources=[('xkb', 'us'), ('xkb', 'hu')] in /usr/share/glib-2.0/schemas/99_my.gschema.overrride file. I ran glib-compile-schemas /usr/share/glib-2.0/schemas ...
2
votes
0answers
176 views

Autostart with AutostartCondition

I want to run a program at a certain condition. So I have created a .desktop file and put it in /etc/xdg/autostart. the contents of the desktop file are: [Desktop Entry] Type=Application Name=...
1
vote
0answers
258 views

How to get a list (from shell) of Icon Themes installed?

I'm developing a simple script for change the icon theme with Unity. How could I know all the current (Ubuntu & Unity) System Icon Themes with a shell command? There are a few folders in /usr/...
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,...
0
votes
1answer
835 views

How To Set System Wide Proxy Using Shell Script

I want to make a script that sets and unsets SYSTEM WIDE proxy just as what happens through the network settings. I tried this answers gsettings part but it does not work in 14.04 Could Anyone ...
4
votes
1answer
596 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/...
1
vote
0answers
130 views

Upgrade to 14.04 broke gsettings

I have a cron job which runs every 30 minutes that changes the background image by running this bash script: #!/bin/bash export DISPLAY=:0 export GSETTINGS_BACKEND=dconf wpdir="/home/username/...
2
votes
0answers
87 views

Having trouble preventing users from changing wallpaper/settings [duplicate]

I'm sort of new to linux and I'm having a problem, I'm trying to prevent users from changing the desktop wallpaper (as well as other things but that is the main one) I know this has been asked ...
2
votes
1answer
2k views

Configure gnome-shell extensions from command line

I like to run a couple of scripts to automatically install packages and do some configurations on fresh OS installs. I use gnome shell with a few extensions and was thinking of improving my scripts to ...
4
votes
1answer
617 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 ...
1
vote
1answer
406 views

How to add element to the gsettings array at the specific location (given by index)?

I want to write a script that translates devilspie's window rules into compiz' rules. Compiz settings can be changed by gsettings keys in path org.compiz.profiles.unity.plugins.place. There are three ...
2
votes
1answer
629 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 ...
12
votes
2answers
16k 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/...
2
votes
1answer
278 views

How can run a gsettings command inside a postinst script from a custom .deb package?

I want to change the wallpaper when a custom .deb package is installed. In the postinst script I've written this: PID=$(pgrep gnome-session) export DBUS_SESSION_BUS_ADDRESS=$(grep -z ...
1
vote
1answer
124 views

What does “gsettings get com.ubuntu.update-manager launch-time 1382579402” mean?

When I run gsettings get com.ubuntu.update-manager launch-time the response is 1382579402. What does the value of 1382579402 mean?
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 ...
2
votes
1answer
219 views

What determines what is present in gsettings?

I'm on Xubuntu 13.10. I ran this command: $ gsettings list-recursively > ~/Desktop/gset.txt I see a lot of stuff unrelated to Xubuntu. For example: com.canonical.Unity.Lenses always-search ['...
5
votes
1answer
716 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 (...
1
vote
2answers
1k views

Set desktop background from command line over ssh

I am attempting to set my desktop background from the command line in ubuntu 12.04. I am able to do this from the terminal on the actual machine as described here. gsettings set org.gnome.desktop....
3
votes
4answers
2k 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. ...
19
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 ...
2
votes
0answers
120 views

How to temporarily disable Xfce monitor power off via bash

I have set up my monitor to go off after some minutes of inactivity, but when watching an internet stream in a browser this is unwanted, thus I'd like to have bash command that to disable (and later ...
1
vote
2answers
1k views

How do I reset all GSettings key to their default values?

I want to reset all keys in the GSettings to their default values; preferably using a single command, or a simple bash script. How can I get that done?