[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: KStandardDir
From: Harri Porten <porten () tu-harburg ! de>
Date: 1999-06-22 22:58:47
[Download RAW message or body]
Robert Williams wrote:
>
> I am trying to fix Kmahjongg to use KStandardDir so it can be run from
> the panel.
> I looked at locateLocal() and that returns $HOME/.kde .... How do you
> get
> /opt/kde/share/apps/kmahjongg/picts?
QStringList dirs = KGlobal::dirs()->findDirs("appdata", "picts");
will give you a _list_ of ../share/apps/kmahjongg/picts directories.
Depending on your need you may iterate trough this list or take, let's
say the first one, with first().
Harri.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic