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 740520 - screenshot-utils: don't use spaces or colons in filenames
screenshot-utils: don't use spaces or colons in filenames
Status: RESOLVED FIXED
Product: gnome-settings-daemon
Classification: Core
Component: media-keys
unspecified
Other All
: Normal normal
: ---
Assigned To: gnome-settings-daemon-maint
gnome-settings-daemon-maint
: 741490 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2014-11-22 01:49 UTC by Cosimo Cecchi
Modified: 2015-01-28 15:19 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
screenshot-utils: don't use spaces or colons in filenames (1.31 KB, patch)
2014-11-22 01:49 UTC, Cosimo Cecchi
reviewed Details | Review
Replace colon with dots (9.60 KB, text/plain)
2014-12-08 00:26 UTC, bugzilla
  Details
screenshot-utils: don't use spaces or colons in filenames (1.11 KB, patch)
2015-01-28 12:45 UTC, Cosimo Cecchi
committed Details | Review

Description Cosimo Cecchi 2014-11-22 01:49:04 UTC
See patch
Comment 1 Cosimo Cecchi 2014-11-22 01:49:07 UTC
Created attachment 291219 [details] [review]
screenshot-utils: don't use spaces or colons in filenames

Screenshots are often uploaded to web services or copied to (possibly
FAT) external drives.
Don't use characters that would be incompatible with those.
See https://bugzilla.gnome.org/show_bug.cgi?id=698740
Comment 2 Bastien Nocera 2014-11-24 10:38:08 UTC
Review of attachment 291219 [details] [review]:

::: plugins/media-keys/gsd-screenshot-utils.c
@@ +302,3 @@
   /* translators: this is the name of the file that gets made up
    * with the screenshot */
+  file_name = g_strdup_printf (_("Screenshot-from-%s"), origin);

Why is space a problem?
Comment 3 Kristian Fiskerstrand 2014-12-02 12:38:19 UTC
Just to add my support in removing the colons as this blocks me from keeping the Pictures directory synched with ownCloud. The issue with colon will also materialize with Dropbox and if sharing a folder with a windows device. 

From my point of view the spaces does not cause an interoperability issue, so I'm using a patch locally that only drops the colon (as submitted on https://bugs.gentoo.org/show_bug.cgi?id=531330 ).
Comment 4 bugzilla 2014-12-08 00:26:25 UTC
Created attachment 292276 [details]
Replace colon with dots

I see no reason to remove the spaces, either, and doing so is quite unaesthetic.
Comment 5 Debarshi Ray 2014-12-08 10:03:28 UTC
(In reply to comment #2)
> Review of attachment 291219 [details] [review]:
> 
> ::: plugins/media-keys/gsd-screenshot-utils.c
> @@ +302,3 @@
>    /* translators: this is the name of the file that gets made up
>     * with the screenshot */
> +  file_name = g_strdup_printf (_("Screenshot-from-%s"), origin);
> 
> Why is space a problem?

See https://bugzilla.gnome.org/show_bug.cgi?id=698740#c1 :
"Makes sense to me. While we are at this, it might be nice to turn the last
remaining space in the name into a dash too, out of respect for commandline
users who otherwise get to see ugly \-escaped spaces"
Comment 6 Bastien Nocera 2014-12-08 10:32:24 UTC
(In reply to comment #5)
> (In reply to comment #2)
> > Review of attachment 291219 [details] [review] [details]:
> > 
> > ::: plugins/media-keys/gsd-screenshot-utils.c
> > @@ +302,3 @@
> >    /* translators: this is the name of the file that gets made up
> >     * with the screenshot */
> > +  file_name = g_strdup_printf (_("Screenshot-from-%s"), origin);
> > 
> > Why is space a problem?
> 
> See https://bugzilla.gnome.org/show_bug.cgi?id=698740#c1 :
> "Makes sense to me. While we are at this, it might be nice to turn the last
> remaining space in the name into a dash too, out of respect for commandline
> users who otherwise get to see ugly \-escaped spaces"

Really not interested in that...
Comment 7 Cosimo Cecchi 2014-12-12 23:54:53 UTC
Bastien, I'm fine with keeping the spaces. gnome-screenshot will also have to be patched to put the spaces back in.
Any chance you can rework the patch to that effect? I might not have time to do it for a while. Thanks!
Comment 8 André Klapper 2014-12-14 20:31:58 UTC
*** Bug 741490 has been marked as a duplicate of this bug. ***
Comment 9 Bastien Nocera 2015-01-28 12:30:59 UTC
Comment on attachment 292276 [details]
Replace colon with dots

That's not a patch, that's a full file.
Comment 10 Cosimo Cecchi 2015-01-28 12:45:31 UTC
Created attachment 295661 [details] [review]
screenshot-utils: don't use spaces or colons in filenames

--

gnome-screenshot already has been updated to use this format.
Comment 11 Bastien Nocera 2015-01-28 15:16:52 UTC
Review of attachment 295661 [details] [review]:

Looks good.
Comment 12 Cosimo Cecchi 2015-01-28 15:19:45 UTC
Thanks, pushed.