PeterMosmans / ansible-role-customize-gnome

Ansible role that customizes the GNOME desktop. It installs fonts and GNOME extensions from packages or zip files, copies files like desktop backgrounds and GNOME shell tweaks to a host, and modifies user settings.
GNU General Public License v3.0
74 stars 20 forks source link

Consider using dconf module #13

Closed radek-sprta closed 1 year ago

radek-sprta commented 2 years ago

Hello, I think it might be worth considering using the dconf module (https://docs.ansible.com/ansible/latest/collections/community/general/dconf_module.html) over command. It seams to work better at least in some cases. The following fails with customize_gnome

gnome_dconf:
- key: /org/gnome/desktop/wm/preferences/button-layout                                                                                                                       
  value: "'close,minimize,maximize:'"

returning

error: 0-5:unknown keyword

But it works fine, when using dconf module.

PeterMosmans commented 2 years ago

Hi @radek-sprta - thanks for the suggestion. Yeah, using that module seems like a nicer way forward. However, this also implies some more dependencies (as in: the community collection). I'll dive into it.

rupert160 commented 2 years ago

I was having a few issues with the dconf aspect of the module too. When installing extensions sync, the gnome_dconf didn't like me submitting the github-gist-id and git-hub-user-token

PeterMosmans commented 1 year ago

Hi @radek-sprta - I've implemented the 'native' dconf module, and your example now works (again). Please see version 0.2.8.

Thanks for your suggestion!

radek-sprta commented 1 year ago

It's working perfectly with all my dconf settings now. Thanks for the work!