22

I don't want to expose my wallpaper to other people who share my computer, is there a way I can disable this feature or work around it?

21

To Hide YOUR Wallpaper

First and foremost, it sounds like the wallpaper is sensitive. So you should make sure no one else can view it anyway, regardless of whether it's displayed on the greeter or not.

To prevent people from viewing your wallpaper file:

  1. Open the File Browser
  2. Navigate to the wallpaper file
  3. Right click on it
  4. Choose Properties
  5. Select the Permissions tab
  6. Under "Others", select the "Access:" dropdown and choose "None"

There. Now no one but you can view that file. And incidentally, this means the greeter can no longer display it as your wallpaper and will fallback to the default one.

To Hide ALL Wallpapers

sudo -u lightdm dbus-launch gsettings set com.canonical.unity-greeter draw-user-backgrounds false

Secret Bonus Trick for Showing a Different Wallpaper

If you'd like to display a different wallpaper on the greeter than you have as your own wallpaper, issue the following command in a Terminal:

id -u

Which will give you a number that represents your own user ID on the system. Now enter the following command:

dbus-send --system --print-reply --dest=org.freedesktop.Accounts /org/freedesktop/Accounts/UserYOURID org.freedesktop.Accounts.User.SetBackgroundFile string:YOURWALLPAPER

Where YOURID is the user ID you just got and YOURWALLPAPER is a path to the wallpaper you want to use.

Now, if you change your desktop wallpaper after doing this, the greeter wallpaper will be reset to the desktop wallpaper. So you will have to enter this command again to maintain separate wallpapers.

10

For 12.04

Try the following commands in a terminal. It should work.

sudo xhost +SI:localuser:lightdm
sudo su lightdm -s /bin/bash
gsettings set com.canonical.unity-greeter draw-user-backgrounds false
exit
exit

References:

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.