g_file_get_path() converts valid Unix-like MSYS paths into invalid Windows paths
On MSYS2, paths are represented in Unix format, so a Windows resource at C:\Users\User\Documents
can be accessed at /c/Users/User/Documents
. Unfortunately, GFile on Windows attempts to convert the latter path by replacing the forward slashes with backslashes, producing the invalid path \c\Users\User\Documents
. Instead, GFile should at least recognize that the path does not start with a drive letter and colon (and does not start with double slashes), so it should not be converted. Or maybe it could even convert to a normal Windows path, since the platform is Windows, the path starts with only a single forward slash, and the first component is a single letter.
Edited by Princeton Ferro