Bug 91500

Summary: xdg-open may expand %f as relative path
Product: Portland Reporter: Davide Del Zompo <gino.corazzi>
Component: xdg-utilsAssignee: Portland Bugs <portland-bugs>
Status: RESOLVED NOTOURBUG QA Contact:
Severity: enhancement    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments: xdg-open: expand %[fFuU] as full path

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.