[maemo-developers] TestGtkEmbed on N800

From: josh.soref at nokia.com josh.soref at nokia.com
Date: Wed Feb 6 12:20:49 EET 2008
Andrew wrote:
> >> I copied them to /home/user/MyDocs/.documents and chmod'ed 
> them both 
> >> to 777 and ran them after gaining root access (sudo gainroot).
> >>    
> >>>> GRE_HOME=. ./run-mozilla.sh ./TestGtkEmbed
> >>>>         
> >
> > And you thought this would work because you also copied a GRE to the
> > ~/MyDocs/.documents directory?
> >
> >   
> You'll have to forgive my ignorance, but i suppose this is half the 
> question. I don't know what a GRE is or how to copy one or 
> what it does. 
> I couldn't find any reference to it anywhere and so just 
> tried what was 
> working under scratchbox.

If you don't mind, I'd rather you read about it. Running random commands
from random web pages on random devices is not a good idea.

GRE_HOME is of course an environment variable, and . is of course a
reference to the current directory, which is of course relatively empty,
because you've copied two files (run-mozilla.sh, and TestGtkEmbed). In
short, GRE_HOME specifies *where* the GRE you *want* to use lives.

A simple google query for GRE_HOME (or possibly GRE) would do wonders.
Here are a few queries thrown in at no extra charge.
http://www.google.com/search?q=gre_home&ie=utf-8&oe=utf-8&aq=t&rls=org.m
ozilla:en-US:official&client=firefox-a
.
https://garage.maemo.org/svn/browser/mozilla/trunk/microb-engine/microb-
engine/debian/patches/125_MICROB_autoset_grehome_display.diff
.
http://groups.google.com/group/mozilla.dev.builds/tree/browse_frm/month/
2006-04/1c6a0feb22268562?rnum=1&_done=%2Fgroup%2Fmozilla.dev.builds%2Fbr
owse_frm%2Fmonth%2F2006-04%3F

http://www.google.com/search?q=gre+mozilla&ie=utf-8&oe=utf-8&aq=t&rls=or
g.mozilla:en-US:official&client=firefox-a
. http://developer.mozilla.org/en/docs/GRE 

Note that typically the right thing to do w/ a mozilla build is to rsync
dist/bin to whereever you want. I think that's something like:

builder:~/mozilla/obj-firefox-i386-pc-linux/dist/bin% rsync -azL .
victim:firefox_build
builder:~/mozilla/obj-firefox-i386-pc-linux/dist/bin% ssh victim
victim:~% cd firefox_build
victim:~/firefox_build% #do random stuff here.

But, I'm not really sure what your goal is. Do you want to use microb's
own GRE, or the one you built? (GRE_HOME of course lets you pick which
one to use, but picking a non existent one is not a good idea, as I hope
you now understand.)

More information about the maemo-developers mailing list