Results 1 to 8 of 8

Thread: how to create an undeleteable icon on gnome desktop

  1. #1

    Default 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

  2. #2

    Default Re: how to create an undeleteable icon on gnome desktop

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

  3. #3
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    27,235
    Blog Entries
    15

    Default Re: how to create an undeleteable icon on gnome desktop

    Quote Originally Posted by redagadir
    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


  4. #4

    Default Re: how to create an undeleteable icon on gnome desktop

    Quote Originally Posted by atatury View Post
    So, I think these desktop icons are different than ordinary app. shortcuts and probably they're embedded in Gnome/nautilus.
    Yes, they are defined in nautilus schema:
    Code:
    grep -C 3 "icon_visible" /usr/share/GConf/schemas/apps_nautilus_preferences.schemas
    Users can show/hide those for example using gconf-editor:



    Quote Originally Posted by malcolmlewis View Post
    No, you can just copy the firefox.desktop entry
    from /usr/share/applications to /usr/share/desktop-data
    That didn't work for me (?)

  5. #5
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    27,235
    Blog Entries
    15

    Default Re: how to create an undeleteable icon on gnome desktop

    Quote Originally Posted by please try again
    atatury;2374027 Wrote:
    >
    > So, I think these desktop icons are different than ordinary app.
    > shortcuts and probably they're embedded in Gnome/nautilus.
    >


    Yes, they are defined in nautilus schema:

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


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


    '[image:
    http://img543.imageshack.us/img543/70/gconfedit.th.png]
    ' (http://img543.imageshack.us/img543/70/gconfedit.png)


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


    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


  6. #6

    Default Re: how to create an undeleteable icon on gnome desktop

    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

  7. #7
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    27,235
    Blog Entries
    15

    Default Re: how to create an undeleteable icon on gnome desktop

    Hi
    Have a read of this article;
    openSUSE Lizards
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

  8. #8

    Default Re: how to create an undeleteable icon on gnome desktop

    Thanks for the article; I'll read it thouroughly and post the results soon..

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •