how to create an undeleteable icon on gnome desktop

Hi all,

I recently installed a Suse Studio build and trying to customize it. When I login as an ordinary user, there are 2 icons on Gnome desktop (or nautilus); Home and Trash. These appear to be undeleteable and I want an undeleteable Firefox icon on my desktop as well. When I create a Firefox shortcut; it can be deleted no matter what I do; i.e. giving read-only permissions or chown to root. So, I think these desktop icons are different than ordinary app. shortcuts and probably they’re embedded in Gnome/nautilus.

How can I create a Firefox icon that is undeletable? I searched a lot but couldn’t find anything…

Regards,
Atatur

you should check your gconf “registry” for that, and maybe chmod to be read-only.

Hi
No, you can just copy the firefox.desktop entry
from /usr/share/applications to /usr/share/desktop-data


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 11.4 (x86_64) Kernel 2.6.37.6-0.7-desktop
up 10:35, 3 users, load average: 0.20, 0.10, 0.06
GPU GeForce 8600 GTS Silent - Driver Version: 280.13

Yes, they are defined in nautilus schema:

grep -C 3 "icon_visible" /usr/share/GConf/schemas/apps_nautilus_preferences.schemas

Users can show/hide those for example using gconf-editor:

http://img543.imageshack.us/img543/70/gconfedit.th.png](ImageShack - Best place for all of your image hosting and image sharing needs)

That didn’t work for me (?)

Ahh it’s the /usr/share/dist/desktop-files…


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 11.4 (x86_64) Kernel 2.6.37.6-0.7-desktop
up 11:27, 3 users, load average: 0.39, 0.16, 0.09
GPU GeForce 8600 GTS Silent - Driver Version: 280.13

Thanks for the responses.

> No, you can just copy the firefox.desktop entry
> from /usr/share/applications to /usr/share/desktop-data

There’s no firefox.desktop entry in /usr/share/applications. I copied Mozillafirefox.desktop from my ~/Desktop directory to both /usr/share/applications and /usr/share/dist/desktop-files as you explained but that didn’t work. I can still delete the Firefox icon on my desktop. By the way, I logout and log back in with that user, I even rebooted after copying if it works but Firefox icon is still deleteable.

Anything else?

Thanks,
Atatur

Hi
Have a read of this article;
openSUSE Lizards

Thanks for the article; I’ll read it thouroughly and post the results soon…