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

List:       kde-devel
Subject:    Re: KStandardDir
From:       Robert Williams <rwilliams () jrc-utah ! com>
Date:       1999-06-23 1:01:01
[Download RAW message or body]

Harri Porten wrote:

> 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.

KMahjongg uses 2 bitmaps for its background and tile set.  I tried your
example and
it returned /home/rwilliams/.kde ...  Is the problem that 'pics' is not a
registered
type?  Maybe I should install the bmps into /data?

Is it possible to just retrieve the directory /opt/kde/share/apps/kmahjongg
(or
where ever the global share is located)?  I can add ../pics to load the 2
bitmaps.

P.S.  Learning how to use the new 'stuff'

--
Robert Williams        rwilliams@jrc-utah.com
Jarob Consulting       rwilliams@kde.org
Provo, Utah

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

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