Skip to content

Instantly share code, notes, and snippets.



Last active Dec 21, 2015
What would you like to do?
Use DBus calls to set the current user's wallpaper
# Usage: <filename>
path=`dbus-send --system --print-reply=literally \
--dest=org.freedesktop.Accounts --type=method_call \
/org/freedesktop/Accounts \
org.freedesktop.Accounts.FindUserByName string:"$USER"`
dbus-send --system --print-reply \
--dest=org.freedesktop.Accounts \
--type=method_call $path \
org.freedesktop.Accounts.User.SetBackgroundFile \
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.