[Sugar-devel] Bundling plugins with Browse

Simon Schampijer simon at schampijer.de
Wed Dec 10 15:38:26 EST 2008


Sayamindu Dasgupta wrote:
> On Wed, Dec 10, 2008 at 3:47 AM, Bert Freudenberg <bert at freudenbergs.de> wrote:
>> On 09.12.2008, at 22:29, Sayamindu Dasgupta wrote:
>>
>>> On Wed, Dec 10, 2008 at 12:37 AM, Bert Freudenberg <bert at freudenbergs.de>
>>> wrote:
>>>> On 09.12.2008, at 18:49, Sayamindu Dasgupta wrote:
>>>>> http://dev.laptop.org/~sayamindu/Browse-99.xo seems to be working for
>>>>> me. Please test.
>>>>> Attached is the patch which did the trick.
>>>> Ugh. Why is it necessary to copy the plugin to $SUGAR_ACTIVITY_ROOT/
>>>> data ? That would only make sense if it is supposed to be modified at
>>>> runtime.
>>>>
>>>
>>> Do stuff placed in $SUGAR_ACTIVITY_ROOT remain persistent across
>>> reboots ? I seem to have troubles getting that (the file disappeared
>>> after reboot)
>>
>> You misunderstood. Why copy at all? Why not run it from the bundle?
>>
>> Copying from the bundle is only necessary for e.g. default configuration
>> files that the activity needs to be able to change later (because the bundle
>> itself is read-only).
>>
> 
> 
> Ah, ok, I was blindly following cert8.db
> http://dev.laptop.org/~sayamindu/Browse-101.xo follows your solution
> and seems to work fine. Moreover, theoretically one can drop any
> plugin in the plugin directory of Browse, and expect it to work.
> 
> Everyone, please test this as much as possible. Also, how do I include
> the source of the binaries (mozplugger, m4) in the Browse bundle ?
> 
> Thanks,
> Sayamindu

Does work fine. You can save the pdf once it is loaded. I guess we 
should add a palette (right mouse click on link) option to save the pdf 
directly - so you have both options.

What do others think?
    Simon



More information about the Devel mailing list