[gnome-photos/wip/rishi/drop-downloads] source: Drop the "Downloads" folder from the list of local sources
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos/wip/rishi/drop-downloads] source: Drop the "Downloads" folder from the list of local sources
- Date: Sat, 10 Apr 2021 11:43:01 +0000 (UTC)
commit 1313e667dcb9e05b2d2a97777646c7a3cd53f754
Author: Debarshi Ray <debarshir gnome org>
Date: Sat Apr 10 13:42:33 2021 +0200
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. 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.
https://gitlab.gnome.org/GNOME/gnome-photos/-/issues/9
src/photos-source.c | 6 ------
1 file changed, 6 deletions(-)
---
diff --git a/src/photos-source.c b/src/photos-source.c
index 280e4ec1..e0360a00 100644
--- a/src/photos-source.c
+++ b/src/photos-source.c
@@ -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,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]