View Single Post
emjayes's Avatar
Posts: 121 | Thanked: 163 times | Joined on Feb 2008 @ Oulu, Finland
#20
Originally Posted by Benson View Post
Well, there's three differences.
First, and most important:
Until we get to lock the home layout, you can accidentally drag 9 things around your desktop, instead of 1, for 9 times the fun!
I just found a method to make them "permanent"

in xterm:
Code:
sudo gainroot
chattr +i /home/user/.osso/hildon-desktop/home-layout.conf
Now, the applets WILL move, but their state is not saved in the config.

So when, and I do mean when you have once yet screwed the desktop.
Code:
killall hildon-desktop
will restore the state it was in before setting the immutable bit to the config.

Also, you can enable new applets, but they will be in their default position in the desktop after reboot, because their position is not saved.

So to enable new applets, first reset the immutable bit,
Code:
sudo gainroot
chattr -i /home/user/.osso/hildon-desktop/home-layout.conf
enable applets and set the bit again.


To have such a function as a button in personal menu:

in /home/user/.personal_menu.rc

[10]
app name=Reset Desktop
icon name=terminal
executable=/usr/local/bin/resetdesktop


/usr/local/bin/resetdesktop

#!/bin/sh
sudo /etc/init.d/hildon-desktop stop
sudo /etc/init.d/hildon-desktop start


run visudo, add these lines:
user ALL = NOPASSWD: /etc/init.d/hildon-desktop stop
user ALL = NOPASSWD: /etc/init.d/hildon-desktop start

Last edited by emjayes; 2008-05-14 at 14:12.
 

The Following 2 Users Say Thank You to emjayes For This Useful Post: