16

Upgrading to 12.04 caused some problems to my Firefox. It seems like that Firefox doesn't know how to handle downloads.

After some researches, I've found this solution : Kubuntu 12.04 Firefox and Rekong don't know how to open downloaded files

but it still doesn't work as it should, in fact it opens my mp3 with Audacity and not with the default player.

But the worst thing is that "Open folder" opens Gwenview instead of Dolphin!

Suggestions?

StepTNT
  • 333
  • 1
  • 4
  • 10

4 Answers4

20

On Kde, a different approach not involving direct editing. Took it from the link Miguel Aguayo gave in his answer. Someone attached that answer at the bottom in 2014.

  1. Go to System Settings.
  2. Open File Associations.
  3. Go to Inode -> Directory
  4. Remove Gwenview from the Application preference order list. Press Apply.
  5. Optionally, you can add again Gwenview and make it at the bottom of the list of preferences.
elpddev
  • 367
4

This link worked for me.

In short, in the file /home/$USER/.local/share/applications/mimeapps.list add these lines:

[Added Associations]

x-directory/normal=kde4-dolphin.desktop;kde4-kfmclient_dir.desktop;
inode/directory=kde4-dolphin.desktop;kde4-kfmclient_dir.desktop;kde4-gwenview.desktop;kde4-filelight.desktop;kde4-cervisia.desktop;

[Default Applications]

inode/directory=kde4-dolphin.desktop;kde4-kfmclient_dir.desktop;kde4-gwenview.desktop;kde4-filelight.desktop;kde4-cervisia.desktop;
x-directory/normal=kde4-dolphin.desktop;kde4-kfmclient_dir.desktop;
Peachy
  • 7,117
  • 10
  • 38
  • 46
4

I've also encountered this problem. Rather than copy-pasting a blob of text which I don't understand, I tried to figure out which parts of the suggested answer are useful.

  1. Edit the ~/.local/share/applications/mimeapps.list
  2. Append either of the following lines (at the [Added Associations] section):

    x-directory/normal=kde4-dolphin.desktop;
    inode/directory=kde4-dolphin.desktop;
    
  3. Save and Firefox will use Dolphin from now on.

You do not need both lines. Whichever comes last defines the file browser to be opened.

This configuration file maps a mime-type to a .desktop file, which defines which application ought to open the file. After the mime-type, a semicolon-separated list of possible applications is listed. The left-most application has the highest priority, the rightmost file has the lowest (fallback) priority.

Those *.desktop files are located at /usr/share/applications/.
The kde-*.desktop files are located at the subdirectory /usr/share/applications/kde4/.
( /usr/share/applications/kde4/dolphin.desktop , for example )

Rob W
  • 2,287
0

elpddev's answer was right but outdated.

If you use Kubuntu or Plasma desktop, open System Settings and open Applications under Personalization. Under Default Applications, click File Manager and select Files or any other file manager you want. You can here change default terminal too which was driving me nuts.

Zanna
  • 70,465
Simptive
  • 121
  • Tried this before looking for a solution on the internet. Dolphin was set as default but still did not fire up when I used the "open folder" option in transmission (the torrent client). – mmttato Dec 01 '18 at 22:34