[nautilus] batch-rename-utilities: Use string literal instead of IRI



commit 1a75eeb555af6c7e467b0a46c7db6e71896bf625
Author: Max <max privatevoid net>
Date:   Sat Aug 15 22:58:51 2020 +0200

    batch-rename-utilities: Use string literal instead of IRI
    
    The batch rename feature supports renaming files by common metadata stored
    in Tracker's database. This was previously broken because a filter in the
    SPARQL query that intends to limit the file selection to the current
    directory was always returning 0 results. Changing the string quote type
    from IRI syntax to a regular string literal within that filter call fixes
    the problem.
    
    Fixes #1025.

 src/nautilus-batch-rename-utilities.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/nautilus-batch-rename-utilities.c b/src/nautilus-batch-rename-utilities.c
index da0f32113..fcc0a32e9 100644
--- a/src/nautilus-batch-rename-utilities.c
+++ b/src/nautilus-batch-rename-utilities.c
@@ -1075,7 +1075,7 @@ check_metadata_for_selection (NautilusBatchRenameDialog *dialog,
     parent_uri = nautilus_file_get_parent_uri (NAUTILUS_FILE (selection->data));
 
     g_string_append_printf (query,
-                            "FILTER(tracker:uri-is-parent(<%s>, ?url)) ",
+                            "FILTER(tracker:uri-is-parent(\"%s\", ?url)) ",
                             parent_uri);
 
     for (l = selection; l != NULL; l = l->next)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]