aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/common.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/common.c b/src/common.c
index 75139676..6defa7c1 100644
--- a/src/common.c
+++ b/src/common.c
@@ -577,6 +577,9 @@ get_expanded_path(const char* path)
GString* exp_path = g_string_new("");
gchar* result;
+ if (g_str_has_prefix(path, "file://")) {
+ path += strlen("file://");
+ }
if (strlen(path) >= 2 && path[0] == '~' && path[1] == '/') {
g_string_printf(exp_path, "%s/%s", getenv("HOME"), path + 2);
} else {