[gnome-photos/wip/uajain/side-car-file] local-item: Store edits in side-car files
- From: Umang Jain <uajain src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos/wip/uajain/side-car-file] local-item: Store edits in side-car files
- Date: Fri, 9 Feb 2018 21:53:21 +0000 (UTC)
commit 8b4682fd5f9891c67ae54d8832a091fbd01b5111
Author: Umang Jain <mailumangjain gmail com>
Date: Sat Feb 10 03:21:32 2018 +0530
local-item: Store edits in side-car files
src/photos-local-item.c | 9 +++------
1 file changed, 3 insertions(+), 6 deletions(-)
---
diff --git a/src/photos-local-item.c b/src/photos-local-item.c
index f7f161c7..22a1e3dc 100644
--- a/src/photos-local-item.c
+++ b/src/photos-local-item.c
@@ -108,16 +108,13 @@ photos_local_item_create_name_fallback (PhotosBaseItem *item)
static gchar *
photos_local_item_get_pipeline_path (PhotosLocalItem *self)
{
- const gchar *data_dir;
const gchar *uri;
- g_autofree gchar *md5 = NULL;
+ g_autofree gchar *item_path = NULL;
gchar *path;
uri = photos_base_item_get_uri (PHOTOS_BASE_ITEM (self));
- md5 = g_compute_checksum_for_string (G_CHECKSUM_MD5, uri, -1);
- data_dir = g_get_user_data_dir ();
-
- path = g_build_filename (data_dir, PACKAGE_TARNAME, "local", md5, NULL);
+ item_path = g_filename_from_uri (uri, NULL, NULL);
+ path = g_strconcat (item_path, ".gnome-photos", NULL);
return path;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]