Bug 91500 - xdg-open may expand %f as relative path
Summary: xdg-open may expand %f as relative path
Status: RESOLVED NOTOURBUG
Alias: None
Product: Portland
Classification: Unclassified
Component: xdg-utils (show other bugs)
Version: unspecified
Hardware: Other Linux (All)
: medium enhancement
Assignee: Portland Bugs
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-29 08:51 UTC by Davide Del Zompo
Modified: 2015-09-20 06:03 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
xdg-open: expand %[fFuU] as full path (436 bytes, text/plain)
2015-07-29 08:51 UTC, Davide Del Zompo
Details

Description Davide Del Zompo 2015-07-29 08:51:43 UTC
Created attachment 117440 [details]
xdg-open: expand %[fFuU] as full path

While trying to setup urxvt as inode/directory handler (Exec=urxvt -cd %f) I noticed that the %f field code may be expanded as a relative path, causing urxvt to fail.

In wider terms, some applications could have problems dealing with relative paths, while absolute paths should be "safe" for anything.

I can't foresee any issue introduced by the attached diff, but any comment is welcome.
Comment 1 Rex Dieter 2015-07-29 12:43:40 UTC
I vaguely recall we wanted to be able to support relative paths for some reason(s), but don't remember right now.

Why can't urxvt handle relative paths?
Comment 2 Per Olofsson 2015-09-20 06:03:26 UTC
I'd say this is a bug in rxvt. There are almost no programs that can't handle relative paths AFAIK.


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.