Questions tagged [gsettings]

GSettings is an API that allows you to access key/value pairs (e.g., persistent application settings) without directly talking to the actual backend that stores that data (config files, gconf, dconf).

Useful Links:

Gsettings Developer guide

gsettings Command Line Tool

40 questions
1
vote
2 answers

Weird behavior of gsettings set a new desktop.background with cron

I want to change my desktop background every 5 minutes. I'm on ubuntu, this work and effectively change my background by another one : gsettings set org.gnome.desktop.background picture-uri "file:/img.jpg" I can launch it from a python script,…
Zartant
  • 109
  • 9
1
vote
0 answers

How to compile schema at build step?

Waf 2.0.17 glib2 compiles and install the gsettings schemas of hamster smoothly. Yet it is not possible to run the application without installing first: python3 src/hamster-cli.py (hamster-cli.py:4690): GLib-GIO-ERROR **: 17:27:08.176: Settings…
ederag
  • 2,409
  • 25
  • 49
1
vote
2 answers

Run Same Ansible Playbook for Different Local Users

I would like to use an ansible playbook to setup identical configurations for two different users on my localhost (i.e., admin & brian). Currently, the "common" role installs programs that are accessible by both users. In addition, I have settings…
user2514157
  • 545
  • 6
  • 24
1
vote
1 answer

What GLib type should a{ss} map to when using GSettings?

I have a gsettings schema with a key of type a{ss}. I would like to bind said key to a property on an object. I have successfully used g_settings_bind and g_settings_bind_with_mapping with other keys but I don't know what type to map this key to.…
Ava
  • 2,038
  • 3
  • 23
  • 45
1
vote
2 answers

How can I read a value from an array of dictionaries stored in GSettings with Vala?

The GSettings Vala docs are not very detailed and I can't find a way to read an item from an array of dictionaries stored in GSettings. Right now I have this in my schema: [{"id": "postgresql",…
Talysson
  • 1,363
  • 1
  • 9
  • 13
1
vote
1 answer

syntax to override gsettings bytestring

I am trying to define a gsetting default for nemo in an override file. The key (org.nemo.preferences bulk-rename-tool) is of type="ay", which means it's a bytestring as explained on developer.gnome.org After setting it to gprename in nemo's…
oberon
  • 48
  • 8
1
vote
0 answers

How does one package a python application that includes a gsettings schema with setuptools?

I'm trying to use setuptools to package a python application that relies on gsettings for storing and retrieving user's preferences. However I have not used said tool before and I am unsure about what to do with the setup.py script in order to…
Phoenix87
  • 1,003
  • 11
  • 15
1
vote
1 answer

gsettings set org.gnome.desktop.input-sources sources via Vagrant, Puppet leads to @a(ss) []

I try to configure GNOME keyboard layout via Vagrant, Puppet as follows: gnome::gsettings { "input-sources": schema => "org.gnome.desktop.input-sources", key => "sources", value => "\"[('xkb', 'de')]\"", } As a result of gsettings get…
1
vote
0 answers

GSettings value seems to change but does not persist

GSettings value seems to change in my C code but it does not persist. dconf-editor shows that it remains the same (the default "picture-uri" setting). Am I missing something? #include #include int main() { GSettings *…
Thom Thom Thom
  • 1,279
  • 1
  • 11
  • 21
0
votes
0 answers

Set umlauts keyboard shortcuts with gsettings in Ubuntu 20.04

I want to set umlauts keyboard shortcuts in ubuntu 20.04. I tried the following without success. gsettings set org.gnome.settings-daemon.plugins.media-keys custom-keybindings…
bi3ri
  • 23
  • 3
0
votes
0 answers

How to disable client-side window decorations with GSettings overrides in Gnome (Wayland)?

I would like to hide all client-side decorations in Gnome, by setting a GSettings override. I am aware of one SO answer, which is unsuitable because it targets extension developers. I am also aware of the undecorate extension, but besides not being…
Ixxie
  • 1,393
  • 1
  • 9
  • 17
0
votes
0 answers

invoking gsettings from Qt results in "unknown command"

I am trying to run the command gsettings get org.gnome.mutter overlay-key from within Qt using QProcess like so: QString gsettingsFullPath = "/usr/bin/gsettings"; QProcess proc; proc.start(gsettingsFullPath, QStringList() << "get org.gnome.mutter…
t0bias
  • 93
  • 3
  • 13
0
votes
0 answers

Gnome dconf lockdown "show-hidden" not working

I am trying to lockdown the "show-hidden" Files in gnome nautilus with dconf. The lockdown of the "picture-uri" and "picture-opacity" are working fine. As well as setting the "show-hidden" to false. But I can still change it later as a user. My db…
xWanna
  • 13
  • 3
0
votes
0 answers

"No GSettings schemas" error on FileChooserDialog in Gtk on Windows

I have a small GUI application created using Vala and Gtk. It was running very well till I added a FileChooserDialog. After this, the application (compiled and running on Windows) suddenly crashes without any error, when this code is reached. The…
rnso
  • 23,686
  • 25
  • 112
  • 234
0
votes
1 answer

GSettings, glib-compile-schemas and Eclipse

I am building this Gtkmm3 application in Ubuntu and wanted to explore GSettings. All was going well while following the instructions at the 'Using GSettings' page and then it was time to configure the make files. I use Eclipse 2019-12 IDE with CDT…
Mohith
  • 75
  • 7