[Gpephone-devel] Pixmap location

WANG Gang RD-ILAB-PEK gang.wang at orange-ftgroup.com
Mon Aug 6 08:23:44 CEST 2007




Hi, all

    After some discussions among some of the app developers, we would
like to propose the way of pixmap location.

    Affected parties: applications, gpe-applauncher, global setting
system, package installer

    Responsibility:

        applications: provide pixmap files, define the directory
structure of to-be-install files.           

        gpe-applauncher: find the pixmap files in resource directories.
Rules of pixmap locations: for themable pixmap files (eg. icons,
background images), they should be stored in <resource
prefix>/share/themes/<current theme>/ or <resource
prefix>/share/themes/default/. For non-themable pixmap files, they
should be placed in <resource prefix>/share/pixmaps.

        global setting system : store the value of resource prefix which
is retrieved by gpe-applauncher to be concatenated with "/share/themes"
and <current theme> (which is also stored in global setting system) to
locate the pixmap files.     

        package installer: unpack the application package and install
application files to the defined directories, reconcile the possible
conflict between resource prefix and the pre-defined pixmap directory of
a certain application (if the application declares that its pixmaps
should be installed in /usr/share/pixmaps while resource prefix is
/usr/local, package installer will copy the pixmaps files to
/usr/local/share/pixmaps).            

    For gpe-applauncher, the search for a pixmap file goes through the
following process:

    1. find it in <resource prefix>/share/themes/<current theme>/

    2. find it in <resource prefix>/share/themes/default/

    3. find it in <resource prefix>/share/pixmaps/

    4. find it in PREFIX/share/pixmaps/

    Only the failure of the previous step will trigger the next step of
file finding, if the file is found, gpe-applauncher will stop searching
the file in the following directories and return from the process.   

    Florian, the process may differ a little bit from the one in the
mail sent to you earlier today. But either process will introduce
changes to gpe-applauncher, hence, we would very much like to hear from
you.

 

BR

Gang

 
 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.linuxtogo.org/pipermail/gpephone-devel/attachments/20070806/ee5dd4f8/attachment.htm 


More information about the Gpephone-devel mailing list