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

            Bug ID: 439690
           Summary: kde-open5 doesn't respect xdg scheme handler when url
                    contain equals character
           Product: kde-cli-tools
           Version: 5.22.3
          Platform: Archlinux Packages
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: aleix...@kde.org
          Reporter: vikt...@bale.cz
  Target Milestone: ---

SUMMARY
With a custom x-scheme-handler set in XDG, when the URL contain '=', link is
always opened in default browser instead of link handler application.

STEPS TO REPRODUCE
1. Install an application which adds a desktop file with a
MimeType=x-scheme-handler/custom-handler.
2. Execute 'xdg-open custom-handler://key=value' (xdg-open is a script which
actually passes the call to kde-open5 in KDE)

OBSERVED RESULT
Link opens in default browser.

EXPECTED RESULT
Link should be opened by application set to handle the custom scheme. With the
"=" character removed from the link, the application opens as expected.


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Arch Linux 5.12.14, fully up-to-date 
KDE Plasma Version: 5.22.3
KDE Frameworks Version: 5.83.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION

Details below are specific to my application, but bug seems to manifest for any
custom handler when the link contains = character. For example you could try
msteams://test vs msteams://te=st if you have MS Teams installed.

Install EObcanka (Czech national ID card client application from AUR (or deb is
available here https://info.eidentita.cz/Download/). This creates
/usr/share/applications/eopauthapp.desktop with contents:

[Desktop Entry]
Name=eObčanka Identifikace
Comment=Elektronická identifikace občanským průkazem
Version=1.0
Type=Application
Exec=/opt/eObcanka/Identifikace/eopauthapp.sh %u
Path=/opt/eObcanka/Identifikace
Icon=eopauthapp
Terminal=false
Categories=Qt;Utility;
MimeType=x-scheme-handler/czeeopauth
Keywords=eop;smartcards

Ensure that 'xdg-mime query default x-scheme-handler/czeeopauth' returns
eopauthapp.desktop.

Then try 'xdg-open czeeopauth://mwid=1'. Opens in default browser.
Compare with 'xdg-open czeeopauth://mwid1' (without the =). Opens cor using
eopauthapp client application.

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

Reply via email to