View Single Post
Posts: 237 | Thanked: 274 times | Joined on Jul 2010
#437
for a program to copy files to /usr/share/applications/hildon/ it has to be launched as root, also I think that path is hard coded.

so using mv is the easiest way to fix this for now, but fear not, this is to be only done once..

disable/remove catorise before proceeding else the following will take a really long time as catorise will keep reloading the menu for every file copied/moved (there is a 5 second period where catorise will not reload the menu if it had been reloaded already, but don't count on that).

root
Code:
sudo gainroot
move all files in ~/.local/share/applications/hildon/ to /usr/share/applications/hildon/
Code:
mv /home/user/.local/share/applications/hildon/* /usr/share/applications/hildon/
remove the ~/.local/share/applications/hildon directory
Code:
rm -r /home/user/.local/share/applications/hildon
create a symlink in the ~/.local/share/applications/hildon to point to /usr/share/applications/hildon
any file copied to /home/user/.local/share/applications/hildon/ will automatically go to /usr/share/applications/hildon
Code:
ln -s /usr/share/applications/hildon /home/user/.local/share/applications/hildon
change ownership of /usr/share/applications/hildon so user applications can copy files there without root privileges
Code:
chown user /home/user/.local/share/applications/hildon
the last line command will follow the symlink, so effectively it is doing :
chown user /usr/share/applications/hildon

change the ownership of existing desktop files so user applications can edit/remove them without root privileges.
helps when uninstalling games.
Code:
chown user /usr/share/applications/hildon/*
reinstall/enable catorise

[Edit]
games may not show up correctly before rebooting

Last edited by ivyking; 2011-06-14 at 12:16.
 

The Following 6 Users Say Thank You to ivyking For This Useful Post: