Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 618280

Summary: x11-misc/xdg-utils-1.1.2 doesn't start my chromium
Product: Gentoo Linux Reporter: Thomas Capricelli <orzel>
Component: Current packagesAssignee: Freedesktop bugs <freedesktop-bugs>
Status: RESOLVED OBSOLETE    
Severity: normal CC: johu, jstein
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://cgit.freedesktop.org/xdg/xdg-utils/commit/?id=ce802d71c3466d1dbb24f2fe9b6db82a1f899bcb
Whiteboard:
Package list:
Runtime testing required: ---

Description Thomas Capricelli 2017-05-12 09:43:23 UTC
Since updating to x11-misc/xdg-utils-1.1.2, whenever i click on a link in some applications, 'links' is started instead of 'chromium'.
I've narrowed the problem to
    xdg-open <weburl>

I've had lot of problems few years ago, and i had to patch /usr/bin/xdg-open:search_desktop_file() this way :

         if [ -x "$command_exec" ] ; then
             if echo "$arguments" | grep -iq '%[fFuU]' ; then
                 echo START "$command_exec" "$arguments_exec"
-                eval "$command_exec" "$arguments_exec"
+                eval "'$command_exec'" "'$arguments_exec'"
             else
                 echo START "$command_exec" "$arguments_exec" "$arg"
-                eval "$command_exec" "$arguments_exec" "$arg"
+                eval "'$command_exec'" "'$arguments_exec'" "'$arg'"
             fi

Then (can't say which version), the problem went away. And today it's back. My new fix (confirmed to work) is still to patch at the end of /usr/bin/xdg-open:search_desktop_file() : 

-            "$command_exec" "$@"
-            "'$command_exec'" "$@"


I'm using lxqt and not kde/gnome, and i kinda remember that was the origin of the problem.
Comment 1 Pacho Ramos gentoo-dev 2017-12-16 13:01:56 UTC
Please report this to upstream and post the link here to let us track the issue:
https://bugs.freedesktop.org/enter_bug.cgi?product=Portland&component=xdg-utils
Comment 2 Johannes Huber (RETIRED) gentoo-dev 2018-06-13 17:36:01 UTC
Is this still valid in 1.1.3?
Comment 3 Thomas Capricelli 2018-06-13 23:38:19 UTC
It works with 1.1.3. I guess that's probably xdg-open now explicitely handles lxqt.

I can't see any link with the commit you've cited, though