Tiny Core Linux

Tiny Core Base => TCB Bugs => Topic started by: bmarkus on June 18, 2009, 04:39:10 AM

Title: Screenshot - wrong filenames
Post by: bmarkus on June 18, 2009, 04:39:10 AM
Screenshot saves pictures with filename like screenshot_06.18_09:32:22.png This is not a valid DOS file name, therefore such a file can't be copied to the FAT partition on the USB drive to use it on a WINDOWS machine for publication.


Regards... Béla
Title: Re: Screenshot - wrong filenames
Post by: alu on June 18, 2009, 06:09:10 AM
if i rename the file, i can save it on my fat usb stick
Title: Re: Screenshot - wrong filenames
Post by: curaga on June 18, 2009, 06:10:20 AM
Philosophical question: why should we give a heck about dos/windows file names?

In practise it's easy to copy with a different filename if needed, as alu said.
Title: Re: Screenshot - wrong filenames
Post by: bmarkus on June 18, 2009, 06:19:50 AM
Philosophical question: why should we give a heck about dos/windows file names?

In practise it's easy to copy with a different filename if needed, as alu said.

Hm... The most generic way to run TC from USB stick with FAT filesystem, or to use a FAT formatted stick to move files from TC to WIN (ok, there are many other ways are know). So DOS file names are used by TC. If the captured file name can be changed in the system why not? I can rename them for sure, but it is an unnecessary overhead.

Of course one can say forget DOS emotionally, but it is not practical and not user friendly approach. You can spend 10 minutes to change the format and save 100 minutes for the community  :D

BTW, show me any other application in TC creating file names with ':'

Anyhow, it is not so important, but for me it is still remains a bug.

Regards

Béla
Title: Re: Screenshot - wrong filenames
Post by: mikshaw on June 18, 2009, 08:07:44 AM
I agree with both of you.  I don't think a Linux system should be too concerned about DOS filenames when it comes to the ancient 8.3 naming scheme, but I believe that some characters simply shouldn't be part of a filename due to their potential to cause trouble with applications that make special use of those characters.

Although technically the only character you can't use is slash, I think space, semicolon, asterisk, exclamation, question, percent....blah blah, blah, all should be avoided in my opinion.  The only non-alpha-numeric characters I use are underscore, hyphen, and dot (though I have some older files including brackets....haven't had issue with them yet).
Title: Re: Screenshot - wrong filenames
Post by: jpeters on June 18, 2009, 12:43:05 PM
I do find the time designation in the name helpful, however, in that I can quickly see which shot I want to save. 
Title: Re: Screenshot - wrong filenames
Post by: mikshaw on June 18, 2009, 02:41:20 PM
The snapshot script I've been using the last few years has the format  `date +%y-%m%d-%H%M`, which works fine as long as I don't need to take multiple shots in the same minute (only happened once so far).  I suppose I could add seconds as well...
Title: Re: Screenshot - wrong filenames
Post by: bigpcman on June 18, 2009, 03:20:53 PM
The snapshot script I've been using the last few years has the format  `date +%y-%m%d-%H%M`, which works fine as long as I don't need to take multiple shots in the same minute (only happened once so far).  I suppose I could add seconds as well...

I would agree the screenshot name should change to not use uncommon characters that may cause problems. I find that I retake screenshots within a few seconds once I realize I screwed up (which is often) so seconds would matter to me.
Title: Re: Screenshot - wrong filenames
Post by: bmarkus on June 19, 2009, 01:47:22 AM
I do find the time designation in the name helpful, however, in that I can quickly see which shot I want to save. 

The problem is not the time but the ":" Replacing it with "_" or just omitting would be fine.
Title: Re: Screenshot - wrong filenames
Post by: roberts on June 19, 2009, 10:58:32 AM
I will remove the unneeded delimiters with the date portion.
Title: Re: Screenshot - wrong filenames
Post by: bmarkus on June 19, 2009, 11:03:20 AM
I will remove the unneeded delimiters with the date portion.

Thanks!

Béla