Use utils_get_uri_file_prefix() as file URI prefix utils_get_uri_file_prefix() gives "file:///" for Windows and "file://" for all other platforms. So we don't need "g_path_skip_root()" any longer. Using "g_path_skip_root()" removed the drive letter from the URI which worked only as long as the file to be opened was on drive C: (or whatever drive Windows considers as the default). But since local file URIs including the drive letter are supported on Windows, we should use it, so opening files on other drives works as well.
Fixes #1018. You can view, comment on, or merge this pull request online at: https://github.com/geany/geany/pull/1667 -- Commit Summary -- * Use utility function to get a file URI prefix * Use utils_get_uri_file_prefix() as file URI prefix -- File Changes -- M src/build.c (5) M src/utils.c (22) M src/utils.h (1) -- Patch Links -- https://github.com/geany/geany/pull/1667.patch https://github.com/geany/geany/pull/1667.diff -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/geany/geany/pull/1667
