After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 339078 - Better "copy location"
Better "copy location"
Status: RESOLVED WONTFIX
Product: f-spot
Classification: Other
Component: Editing
0.1.x
Other All
: Normal enhancement
: ---
Assigned To: F-spot maintainers
F-spot maintainers
gnome[unmaintained]
Depends on:
Blocks:
 
 
Reported: 2006-04-19 20:25 UTC by Anders Bo Rasmussen
Modified: 2018-07-12 00:06 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Anders Bo Rasmussen 2006-04-19 20:25:46 UTC
"Copy location" could be better when modified images are selected. If I
have selected some images and want to copy them with cp in my shell I
get problems, because I might have cropped some of the files. That give
me a string like:

/long/path/img_117 (Modified).jpeg /long/path/img_118.jpeg /long/path/img_119
(Modified(2)).jpeg

This string can't be used like:

cp /long/path/img_117 (Modified).jpeg /long/path/img_118.jpeg /long/path/img_119
(Modified(2)).jpeg .

since it contains spaces and parenthesis. And it is not easy to split
the string into multiple strings where each string is a filename since
space can both be a delimiter or a part of a filename. I know
3 solution that would solve my problem:

1. Avoid using spaces and parenthesis in automaticly generated filenames
2. Escape spaces and parenthesis when making the string in "Copy location"
3. Use line break as a delimiter in the "Copy location" string.

I think I would prefer both solution 1 and solution 2 at the same time.
Then it would work with all the files that I have and I will not get
more files with strange filenames.
Comment 1 Bengt Thuree 2006-04-20 01:19:27 UTC
I agree.
Avoid spaces and "("
Use "_" and "-" instead.

No need to change existing filenames though, or?
Comment 2 Anders Bo Rasmussen 2006-04-20 06:10:39 UTC
I don't think we should change existing filenames. Users might have other applications that remember the filenames and this will break if names of existing files change.
Comment 3 Bengt Thuree 2006-04-20 06:13:22 UTC
Also see bug #329841
For this one, it was required to add a update patch to move existing files to the proper directory.
Comment 4 Larry Ewing 2006-04-20 16:40:49 UTC
just as a data point, dragging the photos to a gnome-terminal will transfer a uri-list and gnome terminal is resposible for transforming that into a file.  We could offer similar functionality to the copy location code by offering multiple data types on the selection.
Comment 5 Bengt Thuree 2007-11-26 17:48:40 UTC
I just dragged two photos to a gnome-terminal.

Did not work to good...

ls '/home/bengt/Photos/2004/06/29/20040629 183759_Linköping_PrincessJasmine_004-1.JPG
> file:///home/bengt/Photos/2004/07/17/20040717 125752_Loftahammar_AakesSummerHouse-1.JPG
> '
ls: /home/bengt/Photos/2004/06/29/20040629 183759_Linköping_PrincessJasmine_004-1.JPG
file:///home/bengt/Photos/2004/07/17/20040717 125752_Loftahammar_AakesSummerHouse-1.JPG
: No such file or directory



And Copy Location, and pasting it to a gnome-terminal after "ls " did not work to good either... (due to bug #327068 or bug #443862)

 ls /home/bengt/Photos/2004/06/29/20040629 183759_Linköping_PrincessJasmine_004-1.JPG /home/bengt/Photos/2004/07/17/20040717 125752_Loftahammar_AakesSummerHouse-1.JPG
ls: /home/bengt/Photos/2004/06/29/20040629: No such file or directory
ls: 183759_Linköping_PrincessJasmine_004-1.JPG: No such file or directory
ls: /home/bengt/Photos/2004/07/17/20040717: No such file or directory
ls: 125752_Loftahammar_AakesSummerHouse-1.JPG: No such file or directory
Comment 6 André Klapper 2018-07-12 00:06:02 UTC
F-Spot has moved to https://github.com/f-spot/f-spot/issues

If this Bugzilla ticket is still valid in a recent version of F-Spot, please feel free to post this topic as a ticket in the F-Spot project on GitHub.

Closing this report as WONTFIX as part of Bugzilla Housekeeping as we are planning to shut down GNOME Bugzilla in favor of GNOME Gitlab.