File Associations Behaving Strangely after openSUSE 12.2 Upgrade

I upgraded to 12.2 from 12.1 the other day.

Today I’m trying to get VUE - a mind map application - to work. The thing I’m trying to do is get image files, PDFs, and text files embedded as links in the mind map and then open them in their default external applications by double-clicking.

This works fine with PDFs - they open in Adobe Reader when I double-click the link or single-click the little “PDF” icon attached to the link.

I have Gwenview installed as the default app for image viewing. But when I click on an image in VUE, it opens in GIMP. I then removed GIMP from all the image file types in the KDE File Associations dialog - and VUE still opens the image file in GIMP. So I uninstalled GIMP completely because I don’t use it anyway. So Gwenview was the ONLY application set up for the jpg file type. Then VUE opened the image file in Comix! So I installed the minimalist Viewnior image viewer utility and set it as the default image viewer for jpgs - and that works fine in VUE. Gwenview did not work - Viewnior does. I don’t understand it.

Now I have the SAME problem with plain text files! They open in LibreOffice, despite the fact that LibreOffice is not set ANYWHERE in the file associations as the preferred app for ANY kind of text files. Kate is set for all text files. But VUE - or KDE - appears to be ignoring Kate completely. But if I left click on a text file from Dolphin, Kate opens the file fine.

Why is that a left click in Dolphin honors the file associations, but a call from VUE - a Java app - does not - except in the case of PDFs?

What is going on and how can I fix it? Where are ALL the places in KDE and openSUSE where file associations are set? There has to be some place I’ve missed or something broken somewhere.

It appears that the issue with Gwenview might be a broken or missing kde-gwenview.desktop file, according to one bug report I saw. A guy had a similar problem in that he had to have both kde-gwenview.desktop and kde4-gwenview.desktop files installed or Gwenview would not be called properly. I don’t understand .desktop files much, so if anyone thinks this might be the issue, let me know how I can fix it.

I do not know what VUE is, but when it is not a KDE application (or KDE oriented), why should it follow the KDE configuration?
I guess that, when possible at all, you should find a VUE configuration feature to configure this “file association” (either by the last few characters of the file name or by the contents of the file).

Because it does follow them in the case of PDFs. There is no file association setup in VUE itself.

Not that it matters now. I found the mimeapps.list config file that controls the mime file types association in ~/local/share/applications and edited it. I moved the “Added Associations” for the jpg and plain text types down to the “Default Applications” section of the file - and that seems to have fixed it. Why this didn’t work from the KDE File Associations dialogs I don’t know.

And it still doesn’t work for Gwenview for jpgs. Viewnior works, but Gwenview doesn’t no matter what I do.

I can live with the current situation now that I have a config file I can manipulate.

Someone needs to sit down and write up some coherent documentation on how all this stuff works. Doing a Google search for info on this topic sends you all over the place, and half the info is for KDE 3 not 4. And frankly, I think the way this is done is ridiculously complicated.

I had similar issues where GNOME apps were being called (Nautilus) instead
of KDE(Dolphin). I have not noted it happening as of late after a reboot.

> I had similar issues where GNOME apps were being called (Nautilus) instead
> of KDE(Dolphin). I have not noted it happening as of late after a reboot.

You might also try running zypper up until it comes back with Nothing to do.
Those are the two things that I did.

Can you elaborate on that. In my KDE PDF files are opened by Okular (and I have the strong idea that that is the default). In your first post say that VUE opens them with Adobe Reader. Except when you explain that you changed the default KDE association from Okular to Adobe Reader (which you didn’t), this does not prove that VUE followes the KDE file association configuration (rather the opposite).

I bet that if he opens the file associations settings, one will see Adobe Reader above Okular in the list of preferred applications.

I have Okular, Adobe Reader, Gimp. But this is KDE 4.6. They may have changed the default in the mean time.

In any case, the OP’s statment is not complete without him telling that he observed that changing the KDE settings does change the behaviour of his application. To make sure that this is not by incident.

You’re competely right. But … I’ve seen situations like this before, where all PDF was being opened in GIMP. IIRC it was the mozilla mime-types that were interfering.
@OP: take a look in the Firefox settings, specifically at the settings for PDF, PS, JPG