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

List:       kde-devel
Subject:    Re: KStandardDirs::locate() no worky ?
From:       "Aaron J. Seigo" <aseigo () kde ! org>
Date:       2009-05-13 7:38:27
Message-ID: 200905130138.27586.aseigo () kde ! org
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


On Wednesday 13 May 2009, David Boosalis wrote:
> Sorry to beat what may be a dead horse.  I do appreciate you taking the
> time to instruct me, but the issue is still not resolved.
>
>  KStandardDirs ksd;
>  QString pathToDesktopFile = ksd.findResource("apps",
>                            "kde-konqueror");

this requires the full file name: e.g., konqueror.desktop

to find a service by name (like kde-konqueror) you want: 
KService::serviceByStorageId("kde-konqueror");

-- 
Aaron J. Seigo
humru othro a kohnu se
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA  EE75 D6B7 2EB1 A7F1 DB43

KDE core developer sponsored by Qt Software


["signature.asc" (application/pgp-signature)]

>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<


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

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