Bug 701391 - Cannot import file using relative name on command line
Summary: Cannot import file using relative name on command line
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: inkscape
Version: 14
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Lubomir Rintel
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-05-02 19:05 UTC by Patrick Monnerat
Modified: 2012-08-16 14:00 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-08-16 14:00:54 UTC
Type: ---


Attachments (Terms of Use)
Patch fixing the problem (1.31 KB, patch)
2011-05-02 19:05 UTC, Patrick Monnerat
no flags Details | Diff
Patch fixing the problem (1.31 KB, patch)
2011-05-03 10:07 UTC, Patrick Monnerat
no flags Details | Diff

Description Patrick Monnerat 2011-05-02 19:05:53 UTC
Created attachment 496340 [details]
Patch fixing the problem

Description of problem:
Importing a file using a command line argument only succeeds if the file path is absolute.
A relative path fails because inkscape chdir() to the extension directory before really opening the file.

Version-Release number of selected component (if applicable):
inkscape-0.48.1-1.fc14.1.x86_64

How reproducible:
Always

Steps to Reproduce:
1. Store a postscript-file.ps file in your home directory
2. Enter 'inkscape .ps'
  
Actual results:
Importation fails with a /undefinedfile error, as if the file did not exist.

Expected results:
Proper file importation.

Additional info:
The attached patch fixes the problem by converting all relative file arguments to absolute.
I did not report the bug and the patch upstream.

Comment 1 Patrick Monnerat 2011-05-03 10:05:50 UTC
Typo above: use the following:

Steps to Reproduce:
1. Store a postscript-file.ps file in your home directory
2. Enter 'inkscape postscript-file.ps'

Comment 2 Patrick Monnerat 2011-05-03 10:07:42 UTC
Created attachment 496474 [details]
Patch fixing the problem

Comment 3 Patrick Monnerat 2011-06-24 13:58:57 UTC
This matches upstream bug report at https://bugs.launchpad.net/inkscape/+bug/695120

Comment 4 Patrick Monnerat 2011-08-04 12:06:17 UTC
Ping ?

Comment 5 Fedora End Of Life 2012-08-16 14:00:58 UTC
This message is a notice that Fedora 14 is now at end of life. Fedora 
has stopped maintaining and issuing updates for Fedora 14. It is 
Fedora's policy to close all bug reports from releases that are no 
longer maintained.  At this time, all open bugs with a Fedora 'version'
of '14' have been closed as WONTFIX.

(Please note: Our normal process is to give advanced warning of this 
occurring, but we forgot to do that. A thousand apologies.)

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, feel free to reopen 
this bug and simply change the 'version' to a later Fedora version.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we were unable to fix it before Fedora 14 reached end of life. If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora, you are encouraged to click on 
"Clone This Bug" (top right of this page) and open it against that 
version of Fedora.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events.  Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping


Note You need to log in before you can comment on or make changes to this bug.