[Portland-bugs] [Bug 34915] New: xdg-open cant open some valid urls (if URL doesnt match existing filename)
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Wed Mar 2 04:28:17 PST 2011
https://bugs.freedesktop.org/show_bug.cgi?id=34915
Summary: xdg-open cant open some valid urls (if URL doesnt
match existing filename)
Product: Portland
Version: unspecified
Platform: All
OS/Version: Linux (All)
Status: NEW
Severity: normal
Priority: medium
Component: xdg-utils
AssignedTo: portland-bugs at lists.freedesktop.org
ReportedBy: astarta at rat.ru
Description of problem:
in open_generic func xdg-open calls check_input_file before opening an URL, but
fails if the file cant be found.
This is incorrect behavior, cause url should not be valid filename and exist on
the filesystem.
For example:
file:///some_local_path/html/index.html#714.html
is a correct URL (can can be opened by firefox just fine), but xdg-open fails
to open it, with the error that file does not exist.
xdg-open file:///some_local_path/html/index.html#714.html
xdg-open: file '/some_local_path/html/index.html#714.html' does not exist
Steps to Reproduce:
1. Login as normal user and start KDE for example.
2. open X terminal and become root (su -). DE will be set to generic in this
case and xdg-open will call open_generic function by default.
3. Try to open valid URL that doesn't coincide with filename on filesystem.
Additional info:
If I comment check_input_file call in open_generic() function in xdg-open,
everything works just fine :)
--
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the Portland-bugs
mailing list