LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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


Reply
  Search this Thread
Old 10-25-2021, 09:25 AM   #1
Pingvin1
Member
 
Registered: Mar 2020
Distribution: Linux-Mint 21-Cinnamon 5.4.8
Posts: 32

Rep: Reputation: Disabled
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?
 
Old 10-25-2021, 09:37 AM   #2
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,678

Rep: Reputation: Disabled
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):
Code:
gsettings reset org.gnome.settings-daemon.peripherals.mouse locate-pointer
or
Code:
dconf reset /org/gnome/settings-daemon/peripherals/mouse/locate-pointer

Last edited by shruggy; 10-25-2021 at 10:15 AM.
 
Old 10-25-2021, 10:21 AM   #3
Pingvin1
Member
 
Registered: Mar 2020
Distribution: Linux-Mint 21-Cinnamon 5.4.8
Posts: 32

Original Poster
Rep: Reputation: Disabled
Angry

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.
 
Old 10-25-2021, 10:28 AM   #4
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,678

Rep: Reputation: Disabled
Quote:
Originally Posted by Pingvin1 View Post
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 "найти указатель".

Last edited by shruggy; 10-25-2021 at 10:55 AM.
 
Old 10-25-2021, 11:31 AM   #5
Pingvin1
Member
 
Registered: Mar 2020
Distribution: Linux-Mint 21-Cinnamon 5.4.8
Posts: 32

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by shruggy View Post
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.
 
Old 10-25-2021, 11:51 AM   #6
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,678

Rep: Reputation: Disabled
Are you sure you have org.gnome.settings-daemon at all? I don't recall seeing this schema in Ubuntu 20.04. Please show the output of
Code:
gsettings list-schemas | grep -F org.gnome.s
If it's not there, try to locate that setting via GNOME Tweaks.

Last edited by shruggy; 10-25-2021 at 11:57 AM.
 
Old 10-26-2021, 02:56 AM   #7
Pingvin1
Member
 
Registered: Mar 2020
Distribution: Linux-Mint 21-Cinnamon 5.4.8
Posts: 32

Original Poster
Rep: Reputation: Disabled
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.
Attached Files
File Type: txt schemas.txt (1.9 KB, 11 views)
 
Old 10-26-2021, 04:25 AM   #8
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,678

Rep: Reputation: Disabled
OK. Try
Code:
gsettings set org.gnome.settings-daemon.peripherals.mouse locate-pointer false
 
Old 10-26-2021, 07:43 AM   #9
Pingvin1
Member
 
Registered: Mar 2020
Distribution: Linux-Mint 21-Cinnamon 5.4.8
Posts: 32

Original Poster
Rep: Reputation: Disabled
Code:
The "locate-pointer" key is missing
I did it before I created this topic.
 
Old 10-26-2021, 08:56 AM   #10
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,678

Rep: Reputation: Disabled
Try to reinstall gnome-settings-daemon and gnome-settings-daemon-common
Code:
sudo apt reinstall gnome-settings-daemon{,-common}

Last edited by shruggy; 10-26-2021 at 09:53 AM.
 
Old 10-26-2021, 01:16 PM   #11
Pingvin1
Member
 
Registered: Mar 2020
Distribution: Linux-Mint 21-Cinnamon 5.4.8
Posts: 32

Original Poster
Rep: Reputation: Disabled
"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"

Last edited by Pingvin1; 10-26-2021 at 01:18 PM.
 
Old 10-27-2021, 12:17 PM   #12
Pingvin1
Member
 
Registered: Mar 2020
Distribution: Linux-Mint 21-Cinnamon 5.4.8
Posts: 32

Original Poster
Rep: Reputation: Disabled
Code:
$ 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).
Code:
$ sudo apt reinstall gnome-settings-daemon{,-common}
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.

Last edited by Pingvin1; 10-27-2021 at 12:28 PM.
 
Old 10-27-2021, 02:18 PM   #13
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,678

Rep: Reputation: Disabled
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.
 
Old 10-28-2021, 03:59 AM   #14
Pingvin1
Member
 
Registered: Mar 2020
Distribution: Linux-Mint 21-Cinnamon 5.4.8
Posts: 32

Original Poster
Rep: Reputation: Disabled
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".

Last edited by Pingvin1; 10-28-2021 at 04:01 AM.
 
Old 10-28-2021, 05:30 AM   #15
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,678

Rep: Reputation: Disabled
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] dconf fails to configure: requires dconf jr_bob_dobbs Linux From Scratch 3 06-21-2017 05:16 PM
How to edit dconf file (dconf-editor actually can't) ? ardabro Linux - General 3 06-01-2015 11:43 AM
dconf will not work properly, unable to create '/run/user/<username>/dconf AseyMayo Linux - Server 0 08-16-2013 05:44 AM
Help! Hi All. Relatively New. dconf Editor's "Default" misled me now I have no menu's Greycoat Linux - Newbie 2 05-17-2013 12:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:50 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration