So the minimal fix (remove just the colon):

--- screenshot-filename-builder.c.orig  Tue Nov  5 08:15:09 2013
+++ screenshot-filename-builder.c       Tue Nov  5 08:17:18 2013
@@ -132,7 +132,7 @@
       GDateTime *d;
 
       d = g_date_time_new_now_local ();
-      origin = g_date_time_format (d, "%Y-%m-%d %H:%M:%S");
+      origin = g_date_time_format (d, "%Y-%m-%d %H-%M-%S");
       g_date_time_unref (d);
     }
   else

I think that given the advantages it should be applied... I too have
found that files disappearing when shared via Dropbox with windows
machines, for example.

WARNING: not tested, I am on a windows machine right now :-)


** Patch added: "Avoid colons in screenshot file names. WARNING: not tested, I 
am on a windows machine right now :-)"
   
https://bugs.launchpad.net/ubuntu/+source/gnome-screenshot/+bug/1054808/+attachment/3900679/+files/minimum_fix.patch

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to gnome-screenshot in Ubuntu.
https://bugs.launchpad.net/bugs/1054808

Title:
  Default filename for screenshots is problematic

Status in Gnome Screenshot:
  New
Status in “gnome-screenshot” package in Ubuntu:
  Confirmed

Bug description:
  Press "printscreen" and you'll get a default filename of:-

  "Screenshot from YYYY-MM-DD HH:MM:SS.png"

  Fine for browsing in nautilus and double clicking on, but this format
  (specifically the colons) has been a bane for me for some time.

  1. 
  Tab completion fails:-
  -rw-rw-r--   1 alan alan  751K Sep 23 01:10 Screenshot from 2012-09-23 
01:10:33.png

  # tab completion works as far as here
  alan@deep-thought:~/Pictures$ scp Screenshot\ from\ 2012-09-2
  Screenshot\ from\ 2012-09-21\ 19\:40\:46.png 
  Screenshot\ from\ 2012-09-23\ 01\:01\:41.png 
  Screenshot\ from\ 2012-09-23\ 01\:10\:33.png 

  # get to here and it won't finish the filename off.
  alan@deep-thought:~/Pictures$ scp Screenshot\ from\ 2012-09-23\ 01\:

  2. scp fails.
  alan@deep-thought:~/Pictures$ scp Screenshot\ from\ 2012-09-23\ 
01\:10\:33.png popey.com:
  ssh: Could not resolve hostname Screenshot from 2012-09-23 01: Name or 
service not known

  3. Ubuntu one file link in thunderbird fails
  See bug 1054803

  Whilst I can see an argument for fixing the bugs in all those other
  applications, wouldn't it make more sense to just not have mad
  filenames created in the first place.

  I propose:-

  "Screenshot_from_YYYY-MM-DD_HH-MM-SS.png"

  ProblemType: Bug
  DistroRelease: Ubuntu 12.04
  Package: gnome-screenshot 3.4.1-0ubuntu1
  ProcVersionSignature: Ubuntu 3.2.0-31.50-generic 3.2.28
  Uname: Linux 3.2.0-31-generic x86_64
  ApportVersion: 2.0.1-0ubuntu13
  Architecture: amd64
  Date: Sun Sep 23 01:15:27 2012
  EcryptfsInUse: Yes
  InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Release amd64 
(20120425)
  SourcePackage: gnome-screenshot
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/gnome-screenshot/+bug/1054808/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to