[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: KStandardDirs::locate() no worky ?
From: David Boosalis <david.boosalis () gmail ! com>
Date: 2009-05-12 10:49:54
Message-ID: 870c99310905120349r3e985519m7e984dcf333d2d56 () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
I am having trouble implementing KStandardDirs::locate();
Here is what I have:
QString pathToDesktopFile = KStandardDirs::locate("apps",
"konqueror");
kDebug() << "path = " << pathToDesktopFile; // returns empty string
KService service(pathToDesktopFile);
// QString str = service.exec();
KUrl::List urls;
urls.append(KUrl("http://www.sun.com"));
KRun::run(service,urls,0)
My question is, Can anyone tell me why pathToDesktopFile returns a null
string.
Thank you in advance for any help
-David
Using KDE SVN
[Attachment #5 (text/html)]
I am having trouble implementing KStandardDirs::locate(); <br><br>Here is what I \
have:<br><br> QString pathToDesktopFile = KStandardDirs::locate("apps",<br> \
"konqueror");<br> kDebug() << "path = " << \
pathToDesktopFile; // returns empty string<br><br> KService \
service(pathToDesktopFile);<br> // QString str = service.exec();<br> \
KUrl::List urls;<br> urls.append(KUrl("<a \
href="http://www.sun.com">http://www.sun.com</a>"));<br> \
KRun::run(service,urls,0)<br><br><br>My question is, Can anyone tell me why \
pathToDesktopFile returns a null string. <br><br>Thank you in advance for any \
help<br><br>-David<br><br>Using KDE SVN<br>
>> 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