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

List:       kde-devel
Subject:    Re: How to launch the default browser under KDE.
From:       Richard Moore <rich () ipso-facto ! freeserve ! co ! uk>
Date:       2001-08-16 15:56:09
[Download RAW message or body]



Dominique Louis wrote:
> 
> Hi Richard,
>    Thanks for your quick response. Under Linux is there no standard way
> of doing this? For example under Windows you would call an API such as...
> ShellExecute(Handle, 'open', 'http://www.borland.com/kylix', '', '',
> SW_SHOWNORMAL);
> 
> and since you are requesting a URL, it knows to open up the default
> browser and proceed to load that URL.

This is handled by the KRun class in kdelibs (kfmclient can be
considered as a wrapper application for KRun). 

http://developer.kde.org/documentation/library/2.1-api/classref/kio/KRun.html

> 
> Is there something similar under Linux? Secondly is there a Desktop
> independanct way of doing this or would I have to detect if KDE or Gnome
> ws running before calling the correct API.

There's no cross-desktop API for this at the moment AFAIK.

Rich.

> 
> Thanks,
> 
> Dominique.
> 
> Richard Stevens wrote:
> 
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> >
> > On Thursday 16 August 2001 16:09, Dominique Louis wrote:
> >
> >>hi All,
> >>   I am very new to Linux development and I am using Kylix.
> >>I am aware that to lauch a browser you can use the libc.system() API,
> >>but how do I launch the default browser under KDE.
> >>
> >>I imagine that to launch the default mail client would work similarly.
> >>
> >>
> >>Thanks
> >>
> >>
> >>
> >>Dominique
> >>http://www.DelphiGamer.com
> >>
> >>
> >>>>Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to
> >>>>unsubscribe <<
> >>>>
> >
> > I think you can use the KRUN class for that. It's part of the KDE Libraries.
> > Don't know how to use it with Kylix though.
> >
> > Cheers,
> >
> > Richard
> >
> > - --
> > - ---
> > http://www.richardstevens.de
> >
> > Unix IS user friendly, it is just selective about who his friends are.
> > -----BEGIN PGP SIGNATURE-----
> > Version: GnuPG v1.0.6 (GNU/Linux)
> > Comment: For info see http://www.gnupg.org
> >
> > iD8DBQE7e9dLWQvEMJfcXlQRAjWMAKCRmE0/eTHHM/ZIpU8p1vkH9O5wWACaAzlB
> > XzuH7gBeitz8MZLB2RT5m84=
> > =A22z
> > -----END PGP SIGNATURE-----
> >
> >
> >>>Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
> >>>
> >
> >
> 
> 
> >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
 
>> 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