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

List:       kde-devel
Subject:    Re: localkdedir, kde_appsdir() obsolete...
From:       iglio () fub ! it (Pietro Iglio)
Date:       1999-07-02 15:05:50
[Download RAW message or body]

At 16.24 02/07/99 +0200, you wrote:
>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.

KPanel needs to parse the global and the local applnk directories
to build the global and the personal menus.
Thus it needs a way to get the /opt/kde/share/applnk path and
another way to get the ~/.kde/share/applnk.


-- Pietro

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

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