I am running Opera 10.10 64 qt4 on KDE 4. One problem I have is that Opera
doesn't seem to pick up file extensions set in KDE. Some are picked up and
some not, and some are completely off like having Gimp set as viewer or
pdf. I have no idea where that came from! I know I can change these things
in Opera manually, but it would be much better if Opera could follow
what's set in KDE globally like other applications do (even Gnome ones).
Is there a way to get Opera to read the global KDE settings and use those
and nothing but those (except for what Opera deals with internally)? The
funny thing is that Opera is more accurate in this regard on Gnome. One
should think the fact that Opera is a qt application would have these
things work.
--
//ceed
I think Opera gets the list from /etc/mime.types but I'm not sure about
that. I've never added any of those manually.
--
Remco Lanting
[Unofficial Opera bug tracker links]
http://opera.remcol.ath.cx/bugs |
http://my.opera.com/community/forums/topic.dml?id=217364 |
remco.lanting...@gmail.com
> On Mon, 30 Nov 2009 16:53:37 +0100, ceed <cdposte...@yahoo.com> wrote:
>
>> Hi,
>>
>> I am running Opera 10.10 64 qt4 on KDE 4. One problem I have is that
>> Opera doesn't seem to pick up file extensions set in KDE. Some are
>> picked up and some not, and some are completely off like having Gimp
>> set as viewer or pdf. I have no idea where that came from! I know I
>> can change these things in Opera manually, but it would be much
>> better if Opera could follow what's set in KDE globally like other
>> applications do (even Gnome ones). Is there a way to get Opera to
>> read the global KDE settings and use those and nothing but those
>> (except for what Opera deals with internally)? The funny thing is
>> that Opera is more accurate in this regard on Gnome. One should
>> think the fact that Opera is a qt application would have these
>> things work.
>>
>
> I think Opera gets the list from /etc/mime.types but I'm not sure
> about that. I've never added any of those manually.
I believe someone (Patricia, maybe?) put in some work on reading the
settings from kde and gnome as well. Opera using qt doesn't make a
difference here, as these settings are not part of qt, and opera is not
using the kde libraries.
eirik
Thanks. Do you know if there's a way to have Opera read them again like if
it was a new install?
--
//cee (running chakra: KDEmod on arch)
I guess that would be /etc/mailcap and ~/.mailcap -- /etc/mime.types
just mentions a lot of MIME types and corresponding "extensions".
> I believe someone (Patricia, maybe?) put in some work on reading the
> settings from kde and gnome as well.
Hm, you mean *those* two aren't reading the normal files? I can't see
why not, except "not invented here".
Unless the normal files aren't enough for some reason. I don't quite
get the talk about file extensions above -- 99% of the time the file
name should be irrelevant, since there is a MIME type telling Opera
what the data is. Exceptions that come to mind are file: and ftp:
URLs. And even in that case there is the mapping in /etc/mime.types.
/Jorgen
--
// Jorgen Grahn <grahn@ Oo o. . .
\X/ snipabacken.se> O o .
I assume opera would re-read those lists automatically. If not every
time it is needed, then at least every time opera is restarted. But
admittedly, I don't really know much about this.
eirik
Never underestimate the not-invented-here syndrome :)
> Unless the normal files aren't enough for some reason. I don't quite
> get the talk about file extensions above -- 99% of the time the file
> name should be irrelevant, since there is a MIME type telling Opera
> what the data is. Exceptions that come to mind are file: and ftp:
> URLs. And even in that case there is the mapping in /etc/mime.types.
That is a very good point. Yes, opera will usually pay more attention
to the mime type than the file extension. So if the server is sending
the wrong mime type (e.g. sending pdf files with image/png) then opera
will most likely use the wrong file type association. In fact, I'm
pretty sure the only thing opera uses the file extensions for is as a
hint for what the mime type should be. And that is of course only used
if the server doesn't tell us what the mime type should be (or we don't
trust the server.)
eirik
>> Thanks. Do you know if there's a way to have Opera read them again
>> like if it was a new install?
>
> I assume opera would re-read those lists automatically. If not every
> time it is needed, then at least every time opera is restarted. But
> admittedly, I don't really know much about this.
>
I have been a Linux and Opera users for many years and it has always been
somewhat a problem. On Ubuntu/Mint it's almost working 100% now, but on KDE
based distros it isn't. I really wish Opera would simply follow what the
desktop environment has set, only the major ones of course: Gnome, KDE and
maybe even XFCE.
--
//ceed
The right file type association, you mean -- the one which breaks,
just like the server requested ;->
> In fact, I'm
> pretty sure the only thing opera uses the file extensions for is as a
> hint for what the mime type should be. And that is of course only used
> if the server doesn't tell us what the mime type should be (or we don't
> trust the server.)
Sounds like a sane policy.
It would be interesting to know what your configuration looks like in
the case where it fails: for example, is KDE configured to open PDF
files in xpdf, while Linux (the MIME-related files we mentioned) is
configured to open them in gv?
I wouldn't want Opera to ignore my configuration -- which all my other
software uses correctly -- just because I had once tried KDE and it
left some broken garbage files in /etc or $HOME.