Bug 452514 - Proprietary browser gains "default browser" status without asking to user.
Summary: Proprietary browser gains "default browser" status without asking to user.
Status: RESOLVED INTENTIONAL
Alias: None
Product: systemsettings
Classification: Applications
Component: general (show other bugs)
Version: 5.24.4
Platform: openSUSE Linux
: NOR wishlist
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-04-11 18:52 UTC by Ilgaz Öcal
Modified: 2022-04-11 18:55 UTC (History)
2 users (show)

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


Attachments
"postin" of file which does these things (extracted from microsoft-edge-stable-100.0.1185.39-1.x86_64.rpm with mc) (12.58 KB, text/plain)
2022-04-11 18:52 UTC, Ilgaz Öcal
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ilgaz Öcal 2022-04-11 18:52:47 UTC
Created attachment 148106 [details]
"postin" of file which does these things (extracted from microsoft-edge-stable-100.0.1185.39-1.x86_64.rpm with mc)

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 latest Microsoft Edge Browser (stable) from official RPM
2. Launch any link, e.g. via right clicking URL at Terminal
3. 

OBSERVED RESULT

Microsoft Edge opens

EXPECTED RESULT

System's previously setup default browser (Firefox in my case) should open

SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20220409
KDE Plasma Version: 5.24.4
KDE Frameworks Version: 5.92.0
Qt Version: 5.15.2
Kernel Version: 5.17.1-1-default (64-bit)
Graphics Platform: X11
Processors: 2 × Intel® Core™2 Duo CPU P7350 @ 2.00GHz
Memory: 3.6 GiB of RAM
Graphics Processor: llvmpipe 

ADDITIONAL INFORMATION

As a user of Linux for decades, this is the first time I have seen update-alternatives (ab)used this way. I think time has come to prompt user if he/she really wanted to change default browser just like MacOS does. I don't suggest anything similar to Windows 11. Just a popup triggered by watching a file idle way would be enough.

Here is the relevant lines from RPM postin file:
 CHANNEL=stable
case $CHANNEL in
  stable )
    PRIORITY=200
    ;;
  beta )
    PRIORITY=150
    ;;
  unstable )
    PRIORITY=120
    ;;
  * )
    PRIORITY=0
    ;;
esac
 
/usr/sbin/update-alternatives --install /usr/bin/microsoft-edge \
  microsoft-edge /usr/bin/microsoft-edge-stable $PRIORITY
 
exit 0
Comment 1 David Edmundson 2022-04-11 18:55:50 UTC
This settings kcm is a reflection of the current state, it is working correctly. Controlling apps is out of scope for the desktop. 

Flatpak and snaps are the products for container tech to avoid this sort of thing.