[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: localkdedir, kde_appsdir() obsolete...
From:       Waldo Bastian <bastian () ens ! ascom ! ch>
Date:       1999-07-02 14:24:15
[Download RAW message or body]

Pietro Iglio wrote:
> 
> When I start kpanel I get several messages like:
> 
> localkdedir is obsolete. Try to use KStandardDirs instead
> kde_appsdir() is obsolete. Try to use KStandardDirs instead
> 
> I want to replace these obsolete function. How to use
> KStandardDirs to access local/global directories?
> For example,
> 
> KStandardDirs::getResourceDirs("apps")
> 
> returns a QStringList type {"/opt/kde/share/applnk", "~/.kde/share/applnk"}.
> How can I select between local/global directories?

What do you want to do? Why do you need the difference
between local and global directories? 

E.g. "normal" applications use locate() to find a resource 
(either global or local), and use locateLocal() to find a 
place where they can write it to (local).

But somehow I think that kpanel wants do something more
so for that you need to tell _what_ you want to do.

Cheers,
Waldo
-- 
KDE, A New Millennium, A New Desktop                      http://www.kde.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic