Merge pull request #11012 from Security-Onion-Solutions/issue/10957

set desktop background
This commit is contained in:
Josh Patterson
2023-08-10 16:27:56 -04:00
committed by GitHub
2 changed files with 25 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
# Specify the dconf path
[org/gnome/desktop/background]
# Specify the path to the desktop background image file
picture-uri='file:///usr/local/share/backgrounds/so-wallpaper.jpg'
# Specify one of the rendering options for the background image:
picture-options='zoom'

View File

@@ -35,6 +35,23 @@ convert_gnome_classic:
{% endif %} {% endif %}
{% endfor %} {% endfor %}
desktop_wallpaper:
file.managed:
- name: /usr/local/share/backgrounds/so-wallpaper.jpg
- source: salt://desktop/files/so-wallpaper.jpg
- makedirs: True
set_wallpaper:
file.managed:
- name: /etc/dconf/db/local.d/00-background
- source: salt://desktop/files/00-background
run_dconf_update:
cmd.run:
- name: 'dconf update'
- onchanges:
- file: set_wallpaper
{% else %} {% else %}
desktop_xwindows_os_fail: desktop_xwindows_os_fail: