Hi.
I guess GTK has a config file which is common across all the applications.
Infact the library which i am wanting to write will be loaded by a GTK
Application also.:)

The applications will have their individual config files. In my case its has
info about the location of the database which hold the application data. So
a config file per exe is my basic requirement. I know it can be done by
passing the path as an argument but if we could achieve the same by getting
the location of the exe and fetching the config file from that location it
would be useful learning exercise for me.TIA

On Tue, Feb 3, 2009 at 8:41 AM, Brett McCoy <[email protected]> wrote:

>   On Mon, Feb 2, 2009 at 9:48 PM, Praveen S 
> <[email protected]<mailpraveens%40gmail.com>>
> wrote:
>
> > Hi,The problem is i have to code the shared library and every exe will
> use
> > the functionality provided by this shared library. I need to load the
> config
> > file for all the exes which use the shared library functionality and it
> can
> > be different for different exes.
>
> And how is this different from the many Linux applications that are
> built with GTK+ or Qt -- they all use shared libraries in this same
> manner (and in fact, the shared libraries have their own configs
> separate from the applications). I think your best bet is to have the
> configs in a standard place (like /etc) and not rely on the location
> of the executable file. Users will expect it, in fact.
>
> -- Brett
> ----------------------------------------------------------
> "In the rhythm of music a secret is hidden;
> If I were to divulge it, it would overturn the world."
> -- Jelaleddin Rumi
>
>  
>


[Non-text portions of this message have been removed]

Reply via email to