https://bugs.kde.org/show_bug.cgi?id=442413

            Bug ID: 442413
           Summary: KDE doesn't respect the ~/.config/mimeapps.list
                    defaults
           Product: plasmashell
           Version: 5.21.5
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: k...@davidedmundson.co.uk
          Reporter: 61kyl...@anonaddy.me
                CC: plasma-b...@kde.org
  Target Milestone: 1.0

SUMMARY
In Firefox, when opening the files from the downloads menu, the file always
open in the wrong application (PNG images in Chromium or in ImageMagick, PDFs
in GIMP etc). This happens even with the file associations being correct in
System Settings > Applications > File associations. A Reddit user mentioned the
following:

>The root of the problem is: KDE does not initialize the XDG file associations 
>file ~/.config/mimeapps.list with its defaults. Instead KDE relies on its own 
>launch executable. Since Thunderbird / GTK apps parse that file to get 
>defaults it shows a random app that supports opening PDF files.

>A quick workaround to solve this is forcing KDE to generate the entry for PDF 
>files. You can do that by changing file association order to something 
>different than the default applying it and then turning the ordering back to 
>Okular-first in System Settings -> File Associations.

>It is an oddity left from KDE4 days. It allows people to try out KDE without 
>ruining GTK based desktop file associations but causes problems like this when 
>GTK apps are used under KDE desktop. 
>(https://www.reddit.com/r/kde/comments/pnnlga/kde_system_handler_does_not_offer_okular_as_an/hcri0t2/?utm_source=reddit&utm_medium=web2x&context=3)

After doing the workaround mentioned above, the files are opening (through the
downloads menu of Firefox) in the correct applications.

STEPS TO REPRODUCE
1. Open Firefox;
2. Download a PNG, PDF or JPG file;
3. Click in the downloads menu and open the file.


OBSERVED RESULT
The wrong app will open.

EXPECTED RESULT
The files opening in the right programs.

SOFTWARE/OS VERSIONS
Operating System: Kubuntu 21.04
KDE Plasma Version: 5.21.4
KDE Frameworks Version: 5.80.0
Qt Version: 5.15.2
Kernel Version: 5.11.0-34-generic
OS Type: 64-bit
Graphics Platform: X11
Processors: 8 × Intel® Core™ i5-8265U CPU @ 1.60GHz
Memory: 15,5 GiB of RAM
Graphics Processor: Mesa Intel® UHD Graphics 620

ADDITIONAL INFORMATION
This happens in Ubuntu and in Neon. For reasons that are unknown to me, this
doesn't happen in Fedora.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to