Bug 447655 - Dolphin can't open html files and errors out if you uninstall Firefox, even if you install another browser and set it in the application defaults.
Summary: Dolphin can't open html files and errors out if you uninstall Firefox, even i...
Status: REPORTED
Alias: None
Product: dolphin
Classification: Applications
Component: general (show other bugs)
Version: 20.12.2
Platform: Debian stable Linux
: NOR normal
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-12-29 18:50 UTC by david.scott.brown
Modified: 2021-12-30 23:07 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
File Associations for this bug report (70.34 KB, image/png)
2021-12-30 00:20 UTC, david.scott.brown
Details

Note You need to log in before you can comment on or make changes to this bug.
Description david.scott.brown 2021-12-29 18:50:11 UTC
SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
1. Install another browser, I installed Waterfox and Brave for some reason
2. Remove Firefox
3. Set application defaults to the other browser, I used Brave
4. Open Dolphin and navigate to an HTML file
5. Click or double click on the html file to view it
6. Get Error: 

Error - Dolphin
Unknown error code 100
Could not find the program '/opt/firefox/firefox-bin'
Please send a full bug report at https://bugs.kde.org
                                                 [OK]


The upshot is that Dolphin is not honoring the Applications Default setting, which in my case is currently Brave.

OBSERVED RESULT

Error Dialog


Error - Dolphin
Unknown error code 100
Could not find the program '/opt/firefox/firefox-bin'
Please send a full bug report at https://bugs.kde.org
                                                 [OK]


EXPECTED RESULT

Open HTML file in browser specified in the Applications Default

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma:  5.20.5
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION

Operating System: Debian GNU/Linux 11
KDE Plasma Version: 5.20.5
KDE Frameworks Version: 5.78.0
Qt Version: 5.15.2
Kernel Version: 5.10.0-10-amd64
OS Type: 64-bit
Processors: 4 × AMD A8-7410 APU with AMD Radeon R5 Graphics
Memory: 6.7 GiB of RAM
Graphics Processor: AMD KABINI
Comment 1 Nicolas Fella 2021-12-29 19:20:23 UTC
Is the HTML file a local file or some kind of network share (e.g. FTP)?

What's the output of xdg-mime query default text/html ?
Comment 2 david.scott.brown 2021-12-29 23:05:36 UTC
--- Comment #1 from Nicolas Fella <nicolas.fella@gmx.de> ---
Is the HTML file a local file or some kind of network share (e.g. FTP)?

What's the output of xdg-mime query default text/html ?

-- 

The file was local, in /usr/share/doc/bash-config/help/bash-config.html

The results of xdg-mime query filetype bash-config.html is:
application/xhtml+xml
Comment 3 Nicolas Fella 2021-12-29 23:18:36 UTC
Thanks.

That's not quite the command I asked for, but it's still kinda helpful.

Basically "Default Browser" and "Default Application for HTML files" are different things. For example you might want to open HTML files in a text editor instead of a browser by default.

You can change the default application for (X)HTML files in the "File associations" settings.

Now an interesting question would be why it's still trying to open Firefox. This sounds like an incomplete uninstallation
Comment 4 david.scott.brown 2021-12-30 00:20:00 UTC
Created attachment 144949 [details]
File Associations for this bug report
Comment 5 david.scott.brown 2021-12-30 00:25:21 UTC
> That's not quite the command I asked for, but it's still kinda helpful.

> Basically "Default Browser" and "Default Application for HTML files" are different things. For example you might want to open HTML files in a text editor instead of a browser by default.

Please see the attached screen shot. The file association is Kwrite, then other editors.

>> You can change the default application for (X)HTML files in the "File associations" settings.

The association is Kwrite, so this is still probably a bug?

I believe I used apt to uninstall Firefox. 


Now an interesting question would be why it's still trying to open Firefox. This sounds like an incomplete uninstallation
Comment 6 Nicolas Fella 2021-12-30 11:49:08 UTC
In your screenshot the first item in the list is Firefox, it looks a bit weird since it has no icon
Comment 7 david.scott.brown 2021-12-30 23:07:26 UTC
(In reply to Nicolas Fella from comment #6)
> In your screenshot the first item in the list is Firefox, it looks a bit
> weird since it has no icon

Yes I missed that. Good eye!