Bugs item #1988939, was opened at 2008-06-09 11:20
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=757416&aid=1988939&group_id=144022

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Franco Iacomella (francoiacomella)
Assigned to: Nobody/Anonymous (nobody)
Summary: Error trying to change value of Filename property

Initial Comment:
To reproduce the error do the following:

- Import an image in PNG format.
- Save the file in direcory that is not the $HOME
- Close the file and re-open it (so the path to the image changes to be 
relative to the location of the .sif file was saved)
- Select the image object.
- In the properties of the object go to "Filename" property and click the 
"File" button.

You will get an error like this one:

-----
"The folder contents could not be displayed"

"Error getting information for '/home/<name of your user>/<relative path used 
as value property>': No such file or directory"
-----

- After click "Ok" you will get the file dialog in your home directory.


The problem is the way that relative paths are used when trying to open the 
file dialog. It misses the real absolute path to the location of the original 
image. An example:

- My home folder is /home/yaco
- My .sif file is saved in /home/yaco/synfig/files/file-1.sif
- The imported image in file-1.sif is in 
/home/yaco/synfig/files/images/image.png
- The value of the property is relative to the .sif location, so is: 
images/image.png
- Now, when you try to change the image value clicking the "File" button, the 
Open Dialog will try to open: $HOME + Relative path. In the example: 
/home/yaco/images/. As that folder doesnt exists, you get the above error.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=757416&aid=1988939&group_id=144022

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Synfig-devl mailing list
Synfig-devl@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synfig-devl

Reply via email to