[gnome-software/mwleeds/hardcoded-pwa-list: 14/14] Try using "TIME_CREATED" file attr




commit 99212adc1fb792e38e66456328bc646302a508ee
Author: Phaedrus Leeds <mwleeds protonmail com>
Date:   Fri Mar 25 09:19:21 2022 -0700

    Try using "TIME_CREATED" file attr

 plugins/epiphany/gs-plugin-epiphany.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/plugins/epiphany/gs-plugin-epiphany.c b/plugins/epiphany/gs-plugin-epiphany.c
index c8f748975..14aab23d0 100644
--- a/plugins/epiphany/gs-plugin-epiphany.c
+++ b/plugins/epiphany/gs-plugin-epiphany.c
@@ -540,13 +540,11 @@ refine_app (GsPluginEpiphany    *self,
                        g_assert (desktop_path);
                        desktop_file = g_file_new_for_path (desktop_path);
 
-                       /* FIXME: this should use TIME_CREATED but it does not seem to
-                        * be working (copied from Epiphany) */
                        file_info = g_file_query_info (desktop_file,
-                                                      G_FILE_ATTRIBUTE_TIME_MODIFIED "," 
G_FILE_ATTRIBUTE_STANDARD_SIZE,
+                                                      G_FILE_ATTRIBUTE_TIME_CREATED "," 
G_FILE_ATTRIBUTE_STANDARD_SIZE,
                                                       0, NULL, NULL);
                        if (file_info) {
-                               install_date = g_file_info_get_attribute_uint64 (file_info, 
G_FILE_ATTRIBUTE_TIME_MODIFIED);
+                               install_date = g_file_info_get_attribute_uint64 (file_info, 
G_FILE_ATTRIBUTE_TIME_CREATED);
                                desktop_size = g_file_info_get_size (file_info);
                        }
                        if (install_date) {


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