Bug 106343

Summary: check_browser is broken under kde when just the binary is specified.
Product: Portland Reporter: Simon Lees (SUSE) <sflees>
Component: xdg-utilsAssignee: Portland Bugs <portland-bugs>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium Keywords: patch
Version: 1.1.0   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: Fix for issue.

Description Simon Lees (SUSE) 2018-05-02 07:38:48 UTC
Created attachment 139260 [details] [review]
Fix for issue.

From http://bugzilla.opensuse.org/show_bug.cgi?id=1051353 KDE system settings allows you to set the default browser as a relative binary name rather then as a desktop file, chromium amoungst others uses this feature.

When the browser is stored this way the binary name is saved in the settings prefixed with a !, in these cases check_browser was incorrectly reporting that the default browser was not set (get_browser was returning the right things)

The attached patch fixes this issue.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.