Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 618280 - x11-misc/xdg-utils-1.1.2 doesn't start my chromium
Summary: x11-misc/xdg-utils-1.1.2 doesn't start my chromium
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Freedesktop bugs
URL: https://cgit.freedesktop.org/xdg/xdg-...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-05-12 09:43 UTC by Thomas Capricelli
Modified: 2018-06-13 23:38 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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