Screenshot file name doesn't accept . dot

Postings relating to old VirtualBox pre-releases
Post Reply
Technologov
Volunteer
Posts: 3342
Joined: 10. May 2007, 16:59
Location: Israel

Screenshot file name doesn't accept . dot

Post by Technologov »

Host: WIn 7 x64 + BETA4

Trying to save screenshot via View->Save Screenshot of Ubuntu 14.04 VM, I get screenshot named Ubuntu14.png It turns out, that dots don't work.
mpack
Site Moderator
Posts: 39156
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: Screenshot file name doesn't accept . dot

Post by mpack »

On what host?

This is a common bug/feature on Windows hosts for legacy reasons: it is replacing an incorrect extension ".04" with a correct one ".png". I'm not sure how it can tell that ".04" was never intended to be the extension unless it builds in all kinds of nasty exceptions.

On other platforms the "extension" has a reduced significance.
Technologov
Volunteer
Posts: 3342
Joined: 10. May 2007, 16:59
Location: Israel

Re: Screenshot file name doesn't accept . dot

Post by Technologov »

Host: WIn 7 x64 + BETA4

File name should be: Ubuntu 14.04.png (double dot)
mpack
Site Moderator
Posts: 39156
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: Screenshot file name doesn't accept . dot

Post by mpack »

Yes, it's clear what you intended. The question is what rules the software could use to determine the actions it needs to take. Would "Ubuntu.exe.png" be ok too?
Technologov
Volunteer
Posts: 3342
Joined: 10. May 2007, 16:59
Location: Israel

Re: Screenshot file name doesn't accept . dot

Post by Technologov »

Hmm. Good question.

I think "Ubuntu.exe.png" would be okay too. It is the last extension, that counts. Few letters after last dot. They should always be ".png" in this case.
mpack
Site Moderator
Posts: 39156
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: Screenshot file name doesn't accept . dot

Post by mpack »

On Windows hosts it's controversial because the OS defaults to hiding the last extension, misleading users as to what the file type actually is. Of course in this case leading someone to believe that a PNG is an EXE has fewer unsafe implications than the other way round. Still, many consider it good practice to not have multiple extensions on Windows files.
noteirak
Site Moderator
Posts: 5229
Joined: 13. Jan 2012, 11:14
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Debian, Win 2k8, Win 7
Contact:

Re: Screenshot file name doesn't accept . dot

Post by noteirak »

mpack wrote:Still, many consider it good practice to not have multiple extensions on Windows files.
That doesn't solve the problem of the user wanting/needing to have a filename with several dots, which is really the topic here. I agree the filename should either be what the user gave or an error/warning displayed to the user with maybe a choice of changing it.

About the OP, I also would consider it a bug for the filmename to be wrong, if the change is not intentional. If it is, then the user should be told one way or another.
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
Post Reply