Opened 5 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:


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 years ago

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

comment:2 by criezy, 5 years ago

In bfa1f39:

POSIX: Fix missing expansion of "~" to home when it has no suffix

This fixes bug #10941: Tilde in save path creates "~" folder

comment:3 by criezy, 5 years 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.