[Sugar-devel] Removing the 'Erase' options from activity righ click menu

Gary C Martin gary at garycmartin.com
Sun May 3 12:14:03 EDT 2009

On 3 May 2009, at 13:59, Raúl Gutiérrez Segalés wrote:

> This is a recurrent problem. Perhaps we should have an option in the
> control panel to enable/disable the showing of the Erase option for
> activities or make moving the Erase option a few more clicks away  
> (perhaps
> inside the control panel, the activity updater widget/code might be
> reusable).

For what it's worth; there has been some Sugar 0.86 design talk about  
moving activity management out of the favourites home view and into  
the Journal with a goal of having all activities installed  and  
available there as bundles for Journal management (and potentially for  
modification and even versioning). The home list view may keep some  
management features, but I doubt it's a good place, as there are  
reports that home list view is too similar to a Journal view and  
activity bundles are being erased accidently there as well.


> Basir: is your motivation based on establishing a policy of having  
> some
> activities not erased or because users accidentally remove activities
> every once in a while (as we have experienced frequently in our  
> deployment
> in Paraguay) ?
> On Dom, 3 de Mayo de 2009, 6:01 am, Tomeu Vizoso wrote:
>> [adding sugar-devel to cc]
>> On Sun, May 3, 2009 at 11:32,  <noutash at paiwastoon.com.af> wrote:
>>> Greetings all,
>>> I am new to the whole OLPC thing so please bear with me. We are  
>>> using
>>> the
>>> standard build to install XOs and then use shell scripts for the
>>> localization and to make small changes.
>>> I need to remove the 'Erase' option from the right click menu  
>>> (when you
>>> right click on an activity icon). Is there anyway that this can be  
>>> done
>>> without modifying the sugar source code and creating a new build?
>> Hi Basir,
>> I don't see a way to remove the palette option without changing the
>> Sugar code, but if you change the file permissions so that the user
>> 'olpc' cannot remove the activity directory, the erasing operation
>> will fail and the activity will remain installed. Note that this will
>> cause activity updates to fail, in case that's an issue for you.
>> "sudo chown root.root -R ~/Activities/Write.activity"
>> This command will make that Write is not erasable from the Sugar  
>> palette.
>> Please note that the most appropriate forum to direct these questions
>> is sugar-devel: http://lists.sugarlabs.org/listinfo/sugar-devel .
>> HTH,
>> Tomeu
>>> Thanks
>>> Basir
>>> _______________________________________________
>>> Devel mailing list
>>> Devel at lists.laptop.org
>>> http://lists.laptop.org/listinfo/devel
>> _______________________________________________
>> Sugar-devel mailing list
>> Sugar-devel at lists.sugarlabs.org
>> http://lists.sugarlabs.org/listinfo/sugar-devel
> -----------------------
> Raúl Gutiérrez Segalés
>  +595 981 231 839
> _______________________________________________
> Devel mailing list
> Devel at lists.laptop.org
> http://lists.laptop.org/listinfo/devel

More information about the Devel mailing list