Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 540666 - x11-misc/xdg-utils-1.1.0_rc3_p20150119 mangles arguments to commands in .desktop file Exec: lines
Summary: x11-misc/xdg-utils-1.1.0_rc3_p20150119 mangles arguments to commands in .desk...
Status: RESOLVED DUPLICATE of bug 549286
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Freedesktop bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-19 14:21 UTC by Thomas Capricelli
Modified: 2015-07-18 16:25 UTC (History)
0 users

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 2015-02-19 14:21:26 UTC
Typically, you could add arguments in *.desktop files, such as
  Exec=chromium-browser %U --new-window

(taken from my own chromium-browser-chromium.desktop).
Since the update to 1.1.0_rc3_p20150119, xdg-open fails to parse this line, and instead start chromium as

"/usr/bin/chromium-browser" "http://www.freehackers.org --new-window"

so that i have "%20--new-window" added to all my links.

I tried using
  Exec=chromium-browser %u --new-window
but this fails as well.
My understanding from the specifications is that it should work as it always had.

Going back to x11-misc/xdg-utils-1.1.0_rc2-r1 by masking
  >=x11-misc/xdg-utils-1.1.0_rc3
"fixed" the problem here.

I could not say if that's a problem upstream or in gentoo. The offending lines are in 
  /usr/bin/xdg-open
function search_desktop_file()
the lines starting with arguments="" and nearby.

Reproducible: Always
Comment 1 Thomas Capricelli 2015-06-17 21:30:11 UTC
Still there, and now it blocks the whole kde frameworks packages, as kf-env-3 depends on ">=x11-misc/xdg-utils-1.1.0_rc3_p20150119"
Comment 2 Michael Palimaka (kensington) gentoo-dev 2015-06-18 12:13:11 UTC
This is probably caused by one of the various upstream commits designed to address command injection: http://cgit.freedesktop.org/xdg/xdg-utils/log/. There's also been some further xdg-open changes since our snapshot that could use testing.
Comment 3 Pacho Ramos gentoo-dev 2015-07-18 16:25:40 UTC

*** This bug has been marked as a duplicate of bug 549286 ***