Opened 6 years ago
Closed 5 years ago
#10941 closed defect (fixed)
Tilde in save path creates "~" folder
Reported by: | andrews05 | Owned by: | criezy |
---|---|---|---|
Priority: | normal | Component: | Port: Mac OS X |
Version: | 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 , 5 years ago
Component: | --Unset-- → Port: Mac OS X |
---|
comment:2 by , 5 years ago
comment:3 by , 5 years ago
Owner: | set to |
---|---|
Resolution: | → fixed |
Status: | new → closed |
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.
In bfa1f39: