Commit 252c53d3 authored by Debarshi Ray's avatar Debarshi Ray
Browse files

source: Drop the "Downloads" folder from the list of local sources

The original intention was to look at the "Downloads" folder as a
temporary measure until we have a OS-wide solution for importing
specific files from the web that the user actually wants to keep for
later use, as opposed to files that the web browser randomly chose to
put in the "Downloads" folder. This can today be implemented through a
Flatpak portal.

However, this temporary solution is proving to be more of an annoyance
than anything. So it's better to take it out.

#9
parent a6dd075f
Pipeline #273573 passed with stage
in 10 minutes
......@@ -73,7 +73,6 @@ photos_source_build_filter_local (void)
g_autoptr (GString) tracker_filter = NULL;
g_auto (GStrv) tracker_dirs = NULL;
g_autofree gchar *desktop_uri = NULL;
g_autofree gchar *download_uri = NULL;
g_autofree gchar *export_path = NULL;
g_autofree gchar *export_uri = NULL;
gchar *filter;
......@@ -100,9 +99,6 @@ photos_source_build_filter_local (void)
path = g_get_user_special_dir (G_USER_DIRECTORY_DESKTOP);
desktop_uri = photos_utils_convert_path_to_uri (path);
path = g_get_user_special_dir (G_USER_DIRECTORY_DOWNLOAD);
download_uri = photos_utils_convert_path_to_uri (path);
path = g_get_user_special_dir (G_USER_DIRECTORY_PICTURES);
pictures_uri = photos_utils_convert_path_to_uri (path);
......@@ -110,14 +106,12 @@ photos_source_build_filter_local (void)
export_uri = photos_utils_convert_path_to_uri (export_path);
filter = g_strdup_printf ("(((fn:contains (nie:isStoredAs (?urn), '%s')"
" || fn:contains (nie:isStoredAs (?urn), '%s')"
" || fn:contains (nie:isStoredAs (?urn), '%s')"
" %s)"
" && !fn:contains (nie:isStoredAs (?urn), '%s'))"
" || fn:starts-with (nao:identifier (?urn), '%s')"
" || (?urn = nfo:image-category-screenshot))",
desktop_uri,
download_uri,
pictures_uri,
tracker_filter->str,
export_uri,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment