Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- #This script is executed every time your instance is spawned.
- # check/set background every time bash starts
- cat <<EOF >>$HOME/.bashrc
- FILE="/usr/share/backgrounds/hackthebox.jpg"
- CONF="/org/mate/desktop/background/picture-filename"
- [ \$(/usr/bin/dconf read \${CONF}) != \${FILE} ] && \\
- /usr/bin/dconf write \${CONF} "'\${FILE}'"
- EOF
Advertisement