Opened 8 months ago

Closed 5 months ago

#10941 closed defect (fixed)

Tilde in save path creates "~" folder

Reported by: andrews05 Owned by: criezy
Priority: normal Component: Port: Mac OS X
Keywords: Cc:
Game:

Description

For the most part, ScummVM happily works with a save path relative to the user's home directory (such as "~/Documents/ScummVM"). It loads and saves games correctly, and even ensures the path exists by creating it as necessary. The only problem is, as part of creating the save path, it ends up creating a folder named "~" in the current working directory. This would typically be in the filesystem root, but could be elsewhere if ScummVM is launched from a terminal.

I've encountered this on macOS, unsure if it affects Linux systems also.

Change History (3)

comment:1 by antoniou79, 5 months ago

Component: --Unset--Port: Mac OS X

comment:2 by criezy, 5 months ago

In bfa1f39:

Error: Processor CommitTicketReference failed
Unsupported version control system "git": Can't find an appropriate component, maybe the corresponding plugin was not enabled? 

comment:3 by criezy, 5 months ago

Owner: set to criezy
Resolution: fixed
Status: newclosed

Thank you for your bug report.
I confirmed that I was able to reproduce the bug on macOS, and I suspect it was also happening on Linux, and other ports using the POSIX file system code. The "~" was expanded to the home directory path, but not in all cases. The issue has now been fixed.

Note: See TracTickets for help on using tickets.