Default KDE browser cannot be changed, "Apply" button is disabled

Bug #1878920 reported by Anatoly Borodin
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
plasma-desktop (Ubuntu)
Confirmed
Undecided
Unassigned
systemsettings (Ubuntu)
Incomplete
Undecided
Unassigned

Bug Description

The default browser cannot be changed in Kubuntu 20.04

Reproduce:

Open "System Settings", select "Default Application"->"Web Browser", change a radio button state.

Result: "Apply" stays disabled, the changes are not saved.

Expected: the button "Apply" becomes active, like with any other options (works with "Terminal Emulator", "File manager" etc).

System version:

Linux helium 5.4.0-29-generic #33-Ubuntu SMP Wed Apr 29 14:32:27 UTC 2020 x86_64 x86_64 x86_64 Description: Ubuntu 20.04 LTS
ii systemsettings 4:5.18.4.1-0ubuntu1 amd64 System Settings interface

Revision history for this message
Anatoly Borodin (anatoly.borodin) wrote :
Revision history for this message
Anatoly Borodin (anatoly.borodin) wrote :

Chromium has been my default browser for quite long time. Recently, somewhere during the Focal development phase, Konqueror started to get launched by default, and I can change but cannot save the settings with the System Settings application anymore.

affects: chromium-browser (Ubuntu) → systemsettings (Ubuntu)
Revision history for this message
Anatoly Borodin (anatoly.borodin) wrote :

The file with the string "with the following command:" is /usr/lib/x86_64-linux-gnu/qt5/plugins/kcm_componentchooser.so from plasma-desktop.

ii plasma-desktop 4:5.18.4.1-0ubuntu1 amd64 Tools and widgets for the desktop

Revision history for this message
Olivier Tilloy (osomon) wrote :

I'm unable to observe the problem here. I created a Kubuntu 20.04 VM, and after installing the chromium snap, when opening the system settings I am able to set chromium as the default web browser, and apply the change. See attached screenshot.

Changed in systemsettings (Ubuntu):
status: New → Incomplete
Revision history for this message
Anatoly Borodin (anatoly.borodin) wrote :

I think I know how to reproduce it:

In my .config/kdeglobals I have a line

[General]
BrowserApplication[$e]=chromium-browser.desktop
...

After I removed this line, the "Apply"button started to work properly, and I could select Chrome. The line after saving:

[General]
BrowserApplication=chromium_chromium.desktop
...

Note the absence of "[$e]" and a different .desktop file name.

Changing "BrowserApplication" to "BrowserApplication[$e]" doesn't break the settings dialog. But changing "chromium_chromium.desktop" to any nonexistent file name (e.g. "chromium_chromiummmmmmmm.desktop") does.

The name of the Chromium's desktop file was probably changed recently during the migration to Snap.

Revision history for this message
Anatoly Borodin (anatoly.borodin) wrote :

Something should be wrong in kcms/componentchooser/componentchooserbrowser.cpp , probably in CfgBrowser::configChanged() and/or CfgBrowser::load().

Revision history for this message
Anatoly Borodin (anatoly.borodin) wrote :

Also note: there was been a huge refactoring in this file in the commit 05569e53fd3e ("KCM/Component Revamp Browser config"). The commit is available in the release v5.18.90.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in plasma-desktop (Ubuntu):
status: New → Confirmed
Revision history for this message
Isaac True (itrue) wrote :

I can confirm what @anatoly.borodin reported is still the case: when the file BrowserApplication is set to does not exist the setting cannot be changed. Removing the line allowed me to set the application again in the system settings.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.