Bugs item #1988939, was opened at 2008-06-09 16:20 Message generated for change (Comment added) made by dooglus 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: Closed >Resolution: Fixed 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. ---------------------------------------------------------------------- >Comment By: dooglus (dooglus) Date: 2008-09-24 23:59 Message: Fixed in SVN r2071. ---------------------------------------------------------------------- Comment By: dooglus (dooglus) Date: 2008-09-24 21:19 Message: > In the properties of the object go to "Filename" property > and click the "File" button I don't see any "File" button. I see a row in the Params panel with Filename in the Name column. The Value column has "../filename.png" and the Type column has "string". Ah, I see. If I stretch the Value column out wider and click on the filename then a button appears to the right of the filename labelled "Find". I guess that's what you mean. Clicking it doesn't cause any problem, but it does list the contents of /home rather than /home/chris as I would expect. ie. the ".." has been 'done' twice. Perhaps if the png file was in somewhere other than the parent of the directory I saved the .sifz to then I'd see your crash. ---------------------------------------------------------------------- Comment By: Gerco Ballintijn (gballintijn) Date: 2008-08-13 21:24 Message: Logged In: YES user_id=2166902 Originator: NO Duh, you actually have to make the second column wide enough for the find button to appear. ---------------------------------------------------------------------- Comment By: Gerco Ballintijn (gballintijn) Date: 2008-08-03 20:55 Message: Logged In: YES user_id=2166902 Originator: NO What version of synfig are you using? What OS/distribution? If I click on the image filename, I only get a text entry field, not a file open dialog. ---------------------------------------------------------------------- Comment By: Gerco Ballintijn (gballintijn) Date: 2008-08-03 18:42 Message: Logged In: YES user_id=2166902 Originator: NO What version of synfig are you using? What OS/distribution? If I click on the image filename, I only get a text entry field, not a file open dialog. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2008-06-09 20:52 Message: Logged In: NO > - Select the image object. > - In the properties of the object go to "Filename" property and click the "File" button. I tried to reproduce this. I selected the image *layer* then went to the properties panel and found the filename line there, but I don't see any buttons. There are 4 columns: Name: STR Filename Value: ../../../../tmp/foo.png Type: string Time Track: <blank> How can I see the file button? Am I looking in the wrong place? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=757416&aid=1988939&group_id=144022 ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Synfig-devl mailing list Synfig-devl@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synfig-devl