Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I want to use Unity-2D's Dodge feature for the dash. I accomplished that by changing the hide-mode value in com.canonical.Unity2d.Launcher in DConf Editor to 2.

However, when I decide to change Ubuntu's wallpaper, the hide-mode value gets reverted to 0. I want to prevent this by making the setting hide-mode read-only. How can I do this?

share|improve this question
    
Thanks, keep on keeping on –  Jacob Johan Edwards May 16 '12 at 23:22

1 Answer 1

up vote 3 down vote accepted

The directory you need for this is

/etc/dconf/db/local.d/locks

The are not stored there though; this is the place to put them to make one read-only. From dconf admininstration ...

Lockdown

Lockdown is supported by creating a 'locks' subdirectory in the keyfile directory (ie: /etc/dconf/db/local.d/locks). The files contained in this directory contain a list of keys to lock, one per line. Just as with the keyfiles, you may add any number of files to this directory. Here's an example of what one might look like:

# prevent changes to the company wallpaper
/org/gnome/desktop/background/picture-uri

Of course, you need to run the 'dconf update' tool after changing the locks. The tool will notice if the timestamp on the 'locks' directory has changed, so there is no need to touch the ".d" directory as well.


  • The lockdown key for hide-mode should be ...

     /com/canonical/unity-2d/launcher/hide-mode
    

    I would consider it a bug if this does not work.

Alternative ...

  • Command line method:

     dconf write /com/canonical/unity-2d/launcher/hide-mode 1
    

You could add this to some script or ~/bashrc or something else to get it reset.

share|improve this answer
    
I made a file called /etc/dconf/db/local.d/locks/unity-2d, containing # keep Unity-2D in dodge /com/canonical/unity-2d/launcher/hide-mode, but that doesn't work. Changing the path to /com/canonical/Unity2d/Launcher/hide-mode doesn't work either. –  Exeleration-G May 5 '12 at 22:57
1  
I added in the key it should be (to me). It is the same as you posted here so I would consider it a bug (I also consider it a bug that it gets reset aswell). Posted also an alternative command line method. Maybe you can add that in somewhere. –  Rinzwind May 6 '12 at 6:32
    
after some testing: the directory IS checked when running sudo dconf update (I removed locks and created a new dir lock and it complained about it). –  Rinzwind May 6 '12 at 6:56
    
Thanks for your help. I've committed a bug at bugs.launchpad.net/unity-2d/+bug/995978. –  Exeleration-G May 7 '12 at 14:51

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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