Re: Disabling the padlock icon for read-only .desktop files



On Tue, Jul 21, 2009 at 12:17 AM, Shaun McCance<shaunm gnome org> wrote:
> On Mon, 2009-07-20 at 10:14 +0100, Calum wrote:
>> Hello all,
>>
>> I am locking down a desktop, and when the .desktop files for a user
>> are made root:root 644, a padlock icon is shown by them.
>>
>> I would like to avoid this, as it makes the desktop look more unfriendly.
>> I have looked in GConf, but didn't find anything specific - however, I
>> might not have looked in the right places.
>>
>> Is there a way to disable the displaying of the padlock for icons?
>
> I don't think there's a non-hackish way to do it, but you
> can probably accomplish this by replacing emblem-readonly
> with a fully transparent PNG in the icon theme.
>
> Look for emblem-readonly in /usr/share/icons/<themename>
> where <themename> is the name of the icon theme you use
> (possibly "gnome", which I'll use for example).
>
> find /usr/share/icons/gnome/ -name 'emblem-readonly.*'
>
> Create each of these under ~/.local/share/icons/gnome,
> keeping the directory structure in tact.  But replace
> all of them with fully transparent images.
>
> Kind of hackish, but it should do the trick.

find /usr/share/icons/gnome/ -iname "*nowrite*" -exec rm {} \;

... works perfectly.

Is this not something that should perhaps be included in GConf?

Anyway, thanks for the idea.

Calum


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]