mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
Merge pull request #11012 from Security-Onion-Solutions/issue/10957
set desktop background
This commit is contained in:
8
salt/desktop/files/00-background
Normal file
8
salt/desktop/files/00-background
Normal 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'
|
||||
@@ -35,6 +35,23 @@ convert_gnome_classic:
|
||||
{% endif %}
|
||||
{% 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 %}
|
||||
|
||||
desktop_xwindows_os_fail:
|
||||
|
||||
Reference in New Issue
Block a user