[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-core-devel
Subject: Re: KServiceTypeProfile broken?
From: David Faure <faure () kde ! org>
Date: 1999-11-03 20:11:22
[Download RAW message or body]
So filetypes uses profilerc ?
How can it talk about a preferred service then ?
(I refer to my comment on kde-cvs)
Unfortunately I have no idea about your problem,
since I don't know much of kuserprofile. Torben wrote it
and Simon hacked into it.
Hmm... I implemented preferredService though. It returns
the first one of what ::offers() returns, since that
was the code I found in KRun.
(The sorting is done this way. See KServiceOffer::operator< )
Can you print the list returned by ::offers() ? This might help.
On Wed, Nov 03, 1999 at 03:02:08PM -0500, pbrown@redhat.com wrote:
> The contents of my ~/.kde/share/config/profilerc:
>
> [X11 Amp]
> AllowAsDefault=true
> Preference=1
> ServiceType=audio/x-mp3
> [XMMS]
> AllowAsDefault=true
> Preference=0
> ServiceType=audio/x-mp3
>
> But when I call this:
>
> pDefault = KServiceTypeProfile::preferredService("audio/x-mp3");
> if (pDefault) {
> qDebug("default for %s is %s",name().latin1(),
> pDefault->name().latin1());
>
> I get:
>
> default for audio/x-mp3 is XMMS
>
> Seems wrong. What's going on?
>
> ---
> Preston Brown Systems Engineer
> pbrown@redhat.com Red Hat, Inc.
>
--
David FAURE
david@mandrakesoft.com, faure@kde.org
http://home.clara.net/faure/
KDE, Making The Future of Computing Available Today
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic