[KDE-India] Creation of Application directory

Aditya Mooley aditya.ml at gmail.com
Mon Mar 13 09:33:55 CET 2006


On 3/11/06, Pradeepto Bhattacharya <pradeeptob at gmail.com> wrote:
>
> Hi,
>
> On 3/11/06, Aditya Mooley <aditya.ml at gmail.com> wrote:
> > While developing the Koppermine application, I am creating a file called
> > albumList.xml in the application directory i.e.
> HOME/.kde/apps/koppermine to
> > store the list of albums.
> >  But the directory apps/koppermine is not getting created by default
> when I
> > install the application.
>
>       Aditya, the correct directory to do this is
> ~/.kde/share/apps/$APPNAME.


Yes. Typing mistake by me.

>
> >  My question is, Do I need to create this directory through my program
> or it
> > gets created automatically?
>
>        You can check this at the startof application if the directory
> is present or not. Also you might consider looking at KStandardDirs
> API [1]. You would be using "data" resource. Should be helpful to ya.
>
>
>      [1]
> http://developer.kde.org/documentation/library/3.5-api/kdelibs-apidocs/kdecore/html/classKStandardDirs.html


Thanks for the link. Helped me a lot to solve my problem.

Regards,

--
Aditya Mooley
=============================================================
PHP Applications for E-Biz: http://www.sanisoft.com
Coppermine Picture Gallery: http://coppermine.sf.net
=============================================================
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/kde-india/attachments/20060313/3b9c1cb1/attachment.html 


More information about the KDE-india mailing list