Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 658186 - x11-misc/xdg-utils-1.1.3 with x11-misc/pcmanfm-1.2.5 - xdg-open fails to open urls
Summary: x11-misc/xdg-utils-1.1.3 with x11-misc/pcmanfm-1.2.5 - xdg-open fails to open...
Status: RESOLVED FIXED
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: 2018-06-15 20:20 UTC by Vasiliy Yeremeyev
Modified: 2018-06-17 18:30 UTC (History)
1 user (show)

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


Attachments
emerge --info (emerge.info,5.95 KB, application/x-info)
2018-06-15 20:20 UTC, Vasiliy Yeremeyev
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vasiliy Yeremeyev 2018-06-15 20:20:20 UTC
Created attachment 535988 [details]
emerge --info

Steps to reproduce:
# xdg-open http://google.com

Expected result:
"http://google.com" is opened in browser.

Actual result:
Message: "/CURRENT/PATH/http:/google.com: No such file or directory"

x11-misc/xdg-utils-1.1.2-r1 works fine.

# xdg-settings get default-url-scheme-handler http
firefox.desktop

# xdg-settings get default-web-browser
firefox.desktop

"xdg-settings set" doesn't help.
Comment 1 Jonas Stein gentoo-dev 2018-06-17 15:37:11 UTC
x11-misc/xdg-utils-1.1.1-r1 works fine here.
Comment 2 Mike Gilbert gentoo-dev 2018-06-17 16:11:15 UTC
1.1.3 works fine for me using google-chrome.
Comment 3 Vasiliy Yeremeyev 2018-06-17 18:06:49 UTC
Looks like xdg-utils became broken for using with pcmanfm (x11-misc/pcmanfm-1.2.5) -- it execs "pcmanfm --help -a is_file_url_or_path http://google.com". Previous version didn't do it.

x11-misc/xdg-utils-1.1.3:
execve("/usr/bin/xdg-open", ["xdg-open", "http://google.com"], 0x7fff9a5affc0 /* 65 vars */) = 0
[pid 21213] execve("/usr/bin/pcmanfm", ["pcmanfm", "--help", "-a", "is_file_url_or_path", "http://google.com"], 0x561a0781db70 /* 65 vars */) = 0
[pid 21215] write(1, "http://google.com\n", 18 <unfinished ...>
[pid 21216] read(0, "http://google.com\n", 32768) = 18
[pid 21214] write(1, "http://google.com\n", 18 <unfinished ...>
[pid 21212] <... read resumed> "http://google.com\n", 128) = 18
[pid 21217] write(1, "http://google.com\n", 18) = 18
[pid 21218] read(0, "http://google.com\n", 32768) = 18
[pid 21220] execve("/usr/bin/pcmanfm", ["pcmanfm", "/home/vayerx/http://google.com"], 0x561a0781db70 /* 65 vars */) = 0
[pid 21220] write(5, "/home/vayerx\n0\n/home/vayerx/http://google.com\n", 46) = 46


x11-misc/xdg-utils-1.1.1-r1:
execve("/usr/bin/xdg-open", ["xdg-open", "http://google.com"], 0x7ffe961d1c10 /* 65 vars */) = 0
[pid 22085] write(1, "http://google.com\n", 18) = 18
[pid 22086] read(0, "http://google.com\n", 32768) = 18
[pid 22087] write(1, "http://google.com\n", 18) = 18
[pid 22088] read(0, "http://google.com\n", 32768) = 18
[pid 22089] write(1, "http://google.com\n", 18 <unfinished ...>
[pid 22090] read(0, "http://google.com\n", 32768) = 18
[pid 22091] write(1, "http://google.com\n", 18 <unfinished ...>
[pid 22092] read(0, "http://google.com\n", 32768) = 18
[pid 22094] write(1, "http://google.com\n", 18 <unfinished ...>
[pid 22095] read(0, "http://google.com\n", 4096) = 18
[pid 22095] write(1, "http\n", 5 <unfinished ...>
[pid 22084] <... read resumed> "http\n", 128) = 5
[pid 22096] execve("/usr/bin/xdg-mime", ["xdg-mime", "query", "default", "x-scheme-handler/http"], 0x56385928cb70 /* 65 vars */) = 0
[pid 22100] execve("/usr/bin/awk", ["awk", "-v", "mimetype=x-scheme-handler/http", "\n    BEGIN {\n        prefix=mime"..., "/home/vayerx/.config/mimeapps.li"...], 0x55e9b3168b70 /* 65 vars */) = 0
[pid 22162] read(0, "r/https;\nCategories=Network;WebB"..., 128) = 59
[pid 22168] read(0, "r/https;\nCategories=Network;WebB"..., 128) = 59
[pid 22171] read(0, "r/https;\nCategories=Network;WebB"..., 128) = 59
[pid 22175] read(0, "r/https;\nCategories=Network;WebB"..., 128) = 59
[pid 22179] execve("/usr/bin/firefox", ["/usr/bin/firefox", "http://google.com"], 0x56385928cb70 /* 65 vars */) = 0
Comment 4 Larry the Git Cow gentoo-dev 2018-06-17 18:30:07 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=961b4df26664b11040729a6ee02f53b90c1ebe21

commit 961b4df26664b11040729a6ee02f53b90c1ebe21
Author:     Mike Gilbert <floppym@gentoo.org>
AuthorDate: 2018-06-17 18:26:54 +0000
Commit:     Mike Gilbert <floppym@gentoo.org>
CommitDate: 2018-06-17 18:30:01 +0000

    x11-misc/xdg-utils: fix xdg-open with pcmanfm
    
    Closes: https://bugs.gentoo.org/658186
    Package-Manager: Portage-2.3.40_p14, Repoman-2.3.9_p246

 .../files/xdg-utils-1.1.3-xdg-open-pcmanfm.patch    | 21 +++++++++++++++++++++
 ...utils-1.1.3.ebuild => xdg-utils-1.1.3-r1.ebuild} | 11 +++++------
 2 files changed, 26 insertions(+), 6 deletions(-)