`thunar_vfs_path_relative' can't handle subpaths containing slashes,
documentation
says about it directly: "... and it may not contain any slashes."
Attached patch solves that problem by avoiding `thunar_vfs_path_relative' and
using
g_build_path instead.
diff --git a/libsqueeze/archive.c b/libsqueeze/archive.c
--- a/libsqueeze/archive.c
+++ b/libsqueeze/archive.c
@@ -175,8 +175,13 @@ lsq_archive_new(gchar *path, const gchar *mime)
{
if(g_path_is_absolute(path))
archive->path_info = thunar_vfs_path_new(path, NULL);
- else
- archive->path_info = thunar_vfs_path_relative(lsq_relative_base_path, path);
+ else {
+ gchar *current_dir = g_get_current_dir();
+ gchar *full_path = g_build_path("/", current_dir, path, NULL);
+ archive->path_info = thunar_vfs_path_new(full_path, NULL);
+ g_free(current_dir);
+ g_free(full_path);
+ }
archive->path = thunar_vfs_path_dup_string(archive->path_info);
}
else