Questions tagged [gsettings]
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.
71
questions
100
votes
3
answers
181k
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 ...
15
votes
2
answers
7k
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 ...
26
votes
7
answers
34k
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,...
97
votes
3
answers
32k
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 based ...
43
votes
1
answer
24k
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 ...
30
votes
2
answers
51k
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/...
11
votes
1
answer
12k
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?
29
votes
2
answers
13k
views
How can I script the settings made by gnome-tweak-tool?
I like to be able to configure things from the command line, so that when I reinstall the OS I can just run a script and get my preferred configuration back.
Since "upgrading" to Ubuntu 17.10, I ...
9
votes
1
answer
4k
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 ...
19
votes
1
answer
4k
views
How do I dump all the manually altered dconf / gsettings keys?
dconf editor indicates 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 (including ...
14
votes
2
answers
7k
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 ...
14
votes
1
answer
10k
views
GNOME Night Light Setting from the Command Line
How do I turn the GNOME night light on or off from the command line? I've got the command gsettings set org.gnome.settings-daemon.plugins.color night-light-enabled but don't know what flag/argument/...
17
votes
2
answers
35k
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 ...
10
votes
2
answers
27k
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 ...
10
votes
1
answer
7k
views
How to run gsettings for another user Ubuntu 18.04.2 LTS
I am trying to run gsettings for another user in Ubuntu 18.04.2 LTS. Specifically, I am attempting to prevent the user's screen from locking. This will be run as part of a bash script. The commands I ...
9
votes
2
answers
4k
views
Editing gsettings; add icon to launcher by command [duplicate]
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 ...
3
votes
1
answer
4k
views
How to use gsettings when there is no schema listed?
I want to write a script to reorder the loading of Compiz modules, so that while using the Unity desktop, expo and scale are loaded last and the hot corners setting in those plugins will remain active ...
99
votes
6
answers
73k
views
Turn off error sound on Ubuntu 18.04
How do I turn off the Ubuntu error sound (especially on the terminal) in Ubuntu 18.04?
29
votes
2
answers
6k
views
Do GUI based application execute shell commands in the background?
I have migrated to Ubuntu 16.04 just 2 days ago from Windows. I like the way we can customise the Unity Desktop. I am just playing around with the look and feel of the Desktop environment. Just like ...
2
votes
1
answer
846
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 ...
11
votes
3
answers
6k
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/...
10
votes
1
answer
2k
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 ...
8
votes
1
answer
6k
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 /
...
7
votes
1
answer
1k
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 ...
2
votes
1
answer
2k
views
Bash one-liner to display ALL `gsettings` in GUI dialog window
Recently I've been encountering many questions in Ask Ubuntu that require changing gsettings to solve the problem. For example this question: How to prevent shutdown when one of two batteries is empty?...
67
votes
1
answer
73k
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).
35
votes
3
answers
23k
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 ...
24
votes
2
answers
18k
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.
...
16
votes
2
answers
7k
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 ...
10
votes
2
answers
10k
views
How do I programmatically disable "Connectivity Checking"?
I just installed Ubuntu 18.04 and going through all my dotfile-scripts to properly configure Ubuntu automatically as much as possible. Looping through gsettings I was able to configure most settings ...
7
votes
2
answers
3k
views
Seriously, dconf, gconf, gsettings... How do I save my terminal settings?
I'm trying to do something relatively simple that most of us have wanted to do at one time or another: Save my gnome-teminal settings.
I'm running 14.04 (desktop obviously). I've realized from my ...
5
votes
1
answer
727
views
Is combinining more than one gsettings options for click-action on Ubuntu dock possible?
I'm using Ubuntu 18.04. I would like to use two different settings for click-action on the Ubuntu dock.
gsettings set org.gnome.shell.extensions.dash-to-dock click-action 'previews'
gsettings set ...
5
votes
1
answer
5k
views
How do I auto-hide the Ubuntu Dock using gsettings on Ubuntu 17.10 and later?
In Ubuntu 17.04 with Unity I could auto-hide the launcher using this command:
dconf write "/org/compiz/profiles/unity/plugins/unityshell/launcher-hide-mode" 1
But this does not work in Ubuntu 17.10 ...
2
votes
1
answer
3k
views
How to properly configure a dconf schema from a gschema.xml file?
Well, looking for manners of manipulate dconf keys without a GUI I realize that, only when correctly setup a dconf schema enables its key management through GSettings CLI.
I also observed that ANY ...
2
votes
1
answer
5k
views
Edit Gnome-Terminal profile from command line on 18.04
I am attempting to edit Gnome-Terminal profiles from the command line using gsettings. In order to use gsettings I need to know the keys and values contained in each profile. My problem is that dconf-...
2
votes
1
answer
3k
views
Configuring network settings in Linux via gsettings/script/terminal
How do I configure network settings--like identity, IPv4 format (address, netmask, gateway, DNS), security and passwords--in Ubuntu 18.04 through a script?
I couldn't find any gsettings schemas for ...
2
votes
1
answer
742
views
How to permanently unlock partitions from launcher in 16.04
I tried to unlock partitions from the launcher, but they keeps reappearing after every reboot. Is there any good way to permanently remove partitions from the launcher?
This is happening only on ...
1
vote
1
answer
1k
views
How to use `gsettings set` to configure GNOME shell extension called Arc Menu?
I would like to change the icon image of the arc-menu found in GNOME Tweak Tool > Extensions > Arc menu > Appearance > Customize menu button appearance > Button appearance.
However, I want to use ...
31
votes
3
answers
14k
views
How do I turn off minimize-on-click option for Ubuntu dock?
I am using Ubuntu 18.04 and used this command
gsettings set org.gnome.shell.extensions.dash-to-dock click-action 'minimize'
to turn on minimize on dock with single click on icon. How to revert back ...
25
votes
6
answers
12k
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 ...
21
votes
1
answer
12k
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>
...
15
votes
1
answer
10k
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 first ...
10
votes
2
answers
1k
views
mapping between dconf dump output and gsettings schemas
For example :
dconf dump / | grep mouse
[org/mate/desktop/peripherals/mouse]
....
So if I want to make a gsettings command based on this output, I look to gsettings to list the schemas, but....
(...
9
votes
3
answers
20k
views
reset application to its default state
how to reset a program to its default state?
in android we can clear application data to reset the application to its default state.
does it is possible to reset a program in ubuntu to its default ...
8
votes
1
answer
3k
views
Array manipulation in gsettings' set command
Is there an easy way to do array manipulation in gsettings? I am comparing gsettings to OS X's defaults command that offers the defaults domain --array key overwrite-value and defaults domain --array-...
7
votes
5
answers
14k
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?
7
votes
3
answers
4k
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,...
7
votes
2
answers
2k
views
Firefox hangs because sort-directories-first setting missing
I recently upgraded from xubuntu 14.04 to xubuntu 16.04. The process finished but did not go smooth (I don't remember why).
Now in firefox when I open a file (File -> Open File) the process crashes ...
6
votes
1
answer
6k
views
How to configure a `dconf` key globally across all user accounts
I want to set the 'automount' key, for the ‘media-handling’ schema, to ‘false’, for all users on a single desktop machine.
I can do this individually, i.e. one user at a time, by using gsettings ...
6
votes
5
answers
8k
views
Ubuntu 21.04 remove trash, user and drive icon from desktop?
I want to remove the trash icon, the home icon as well as the drives from my desktop. I've removed them in Ubuntu 20.04, but after updating, they were there again:
I tried:
gsettings set org.gnome....