[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(&quot;apps&quot;,<br> \
&quot;konqueror&quot;);<br>  kDebug() &lt;&lt; &quot;path = &quot; &lt;&lt;  \
pathToDesktopFile;   // returns empty string<br><br>    KService \
service(pathToDesktopFile);<br>    //  QString str = service.exec();<br>    \
KUrl::List urls;<br>    urls.append(KUrl(&quot;<a \
href="http://www.sun.com">http://www.sun.com</a>&quot;));<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