How to create a key in the dconf or gsettings Editor?
Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
How to create a key in the dconf or gsettings Editor?
I have dconf editor version: 3.36.7. Linux: 20.04.3-Ubuntu LTS.
When experimenting, I deleted the key "org.gnome.settings-daemon.peripherals.mouse locate-pointer" through the dconf Editor.
How to create a key in the dconf or gsettings Editor?
Are you sure you deleted it? I cannot find out how to do this from inside dconf Editor. Could it be that you just set a filter to not display it? In the latter case, see Reset visible keys in the sandwich menu (≡).
An easy way to restore a key to its default value is this (from the command line):
The first method was written in the terminal: the "location indicator" key is missing.
And the second method did not write anything to the terminal, but did not create the key.
The first method was written in the terminal: the "location indicator" key is missing.
What "location indicator"? The key name is locate-pointer. You have to enter the command exactly as shown. Did you type the key name in Russian? "указатель местоположения" obviously won't work there.
BTW, did they really translate locate-pointer in Zorin as "указатель местоположения"? That's wrong, it really means "найти указатель".
What "location indicator"? The key name is locate-pointer. You have to enter the command exactly as shown. Did you type the key name in Russian? "указатель местоположения" obviously won't work there.
"location indicator" this key name was made by google translator for forum only, due to my mistake.
In the terminal, I typed: "gsettings reset org.gnome.settings-daemon.peripherals.mouse locate-pointer" and gsettings said there was no "locate-pointer" key. It really isn't in dconf. The key needs to be created.
The view when the key was, unfortunately in Russian: https://cloud.mail.ru/public/CanK/9fwbEnJNv
The result of entering in the terminal "gsettings list-schemas | grep -F org.gnome.s" in the attached file is also in Russian: schemas.txt
If something needs to be translated. I will be happy to translate.
"GNOME Tweaks" did not try, I started to study.
After entering "sudo apt reinstall gnome-settings-daemon{,-common}" - the same error "The 'locate-pointer' key is missing".
I don’t remember exactly how I deleted the key in the dconf editor, it seems I opened the "locate-pointer" key, clicked on the three-bar button and selected "Reset visible keys".
I entered a slightly different command that worked on 18.04.1-Ubuntu LTS and gave the same error in a later version:
"gsettings set org.gnome.settings-daemon.peripherals.mouse locate-pointer true"
$ gsettings set org.gnome.gedit.preferences.ui max-recents 'uint32 20'
Worked in 18.04.1-Ubuntu LTS, and in later versions it gave a "no key" error.
Code:
$ gsettings set org.gnome.settings-daemon.peripherals.mouse locate-pointer true
Worked in 18.04.1-Ubuntu LTS, and in a later version gave an error that the schema is not defined. As I now know, the schema can be edited using the Ctrl + L hotkey in the dconf editor (I removed this key).
Unfortunately, I did not immediately save the result, the next day I saved the result issued by the terminal in the attached file.
If I reinstall Linux: 20.04.3-Ubuntu LTS, then the "max-Recents" key will still not be there, but I need it.
If you don't mind losing all your customizations, you may try to delete ~/.config/dconf/user. This should revert all settings to their system-wide defaults.
I will think about it. Anyway, there will be no "max-Recents" key. I installed 20.04.2-Ubuntu LTS, it updated to 20.04.3-Ubuntu LTS. It is possible that the new version does not even contain the "locate-pointer" key.
Since dconf matches the Windows registry, there must be a way to generate the key. Maybe I should take a close look at "GNOME Tweaks".
The max-recents key must be installed by package gedit. I would expect it to be in /usr/share/glib-2.0/schemas/org.gnome.gedit.gschema.xml.
And locate-pointer to be in /usr/share/glib-2.0/schemas/org.gnome.settings-daemon.peripherals.gschema.xml, which in Ubuntu 20.04 is installed by package gnome-settings-daemon-common.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.