From kde-devel Sun Aug 10 20:38:55 2003 From: Thiago Macieira Date: Sun, 10 Aug 2003 20:38:55 +0000 To: kde-devel Subject: Re: Lower case URLs? X-MARC-Message: https://marc.info/?l=kde-devel&m=106054810320691 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--===============078553821329053308==" --===============078553821329053308== Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg=pgp-sha1; boundary="Boundary-02=_/1qN/8P4oINSLEJ"; charset="iso-8859-15" Content-Transfer-Encoding: 7bit --Boundary-02=_/1qN/8P4oINSLEJ Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Petter E. Stokke wrote: >Now, I'm having trouble implementing this. In order to find the .protocol >file I need to determine the URI mode of a protocol, I need a >KStandardDirs object, which requires a KInstance object. Of course, KURL >can be used today without a KInstance, which creates a bit of a dilemma. > >Has anyone got a suggestion as to how I can find the .protocol files (ie. >in most cases $KDEDIR/share/services or ~/.kde/share/services) in a clean >manner without access to a KInstance, or how to proceed if this proves to >be impossible? Is it safe to make the assumption I did above about the >paths to search in the absence of a KInstance? What I'd recommend is that you revert to the default in the absence of a=20 KInstance. But you should also provide a means of the user setting the URI= =20 type and handling method. KURL should be lightweight. So, I don't recommend writing code to find file= s=20 in the disk. =2D-=20 Thiago Macieira - Registered Linux user #65028 thiagom@mail.com =20 ICQ UIN: 1967141 PGP/GPG: 0x6EF45358; fingerprint: E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358 --Boundary-02=_/1qN/8P4oINSLEJ Content-Type: application/pgp-signature Content-Description: signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQA/Nq1/M/XwBW70U1gRAr1XAKCky0GxvhcbUHt5Iwb848QJ88LGwgCfZ9e3 h5GpCnfj8Vct16Mrzz5iigo= =NXcl -----END PGP SIGNATURE----- --Boundary-02=_/1qN/8P4oINSLEJ-- --===============078553821329053308== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe << --===============078553821329053308==--