[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: KRun confusion
From: Kevin Krammer <kevin.krammer () gmx ! at>
Date: 2004-03-11 19:25:44
Message-ID: 200403112025.44805.kevin.krammer () gmx ! at
[Download RAW message or body]
[Attachment #2 (multipart/signed)]
On Thursday 11 March 2004 13:56, Waldo Bastian wrote:
> On Thu March 11 2004 10:38, Brad Hards wrote:
> > I'm trying to use KRun to open a URL (to a JPEG image), passed in as a
> > QString.
> >
> > Basically what I am doing is:
> > KURL url;
> > url.setPath("file:/home/bradh/sonyproj/DCIM/103MSPJP/SPJP0003.JPG");
> > (void) new KRun(url);
> >
> > But it doesn't seem to open the file. Can anyone provide a really simple
> > example of how it is meant to be used?
>
> KURL url;
> url.setPath("/home/bradh/sonyproj/DCIM/103MSPJP/SPJP0003.JPG");
> (void) new KRun(url);
>
> path != URL
To explain this a little bit further:
The path inn URL terms is the part after the hostname or adresse, which in
turn is after the protocol.
So your original string is a full URL.
Cheers,
Kevin
--
Kevin Krammer <kevin.krammer@gmx.at>
Qt/KDE Developer, Debian User
www.mrunix.de - Unix/Linux programming forum
www.qtforum.org - Qt programming forum
[Attachment #5 (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