[epiphany/gnome-41] Revert "Fix web app GApplication ID calculation"



commit 0b9b813ad20d552999f2f7cd75bd358331decfc7
Author: Michael Catanzaro <mcatanzaro gnome org>
Date:   Thu Jan 20 02:20:30 2022 +0000

    Revert "Fix web app GApplication ID calculation"
    
    This reverts commit e88a29c4be76da1c7ce5497e0e7bccd24de61879

 lib/ephy-web-app-utils.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/lib/ephy-web-app-utils.c b/lib/ephy-web-app-utils.c
index b0d94401a..833dcdd7a 100644
--- a/lib/ephy-web-app-utils.c
+++ b/lib/ephy-web-app-utils.c
@@ -129,11 +129,10 @@ get_gapplication_id_from_id (const char *id)
   /* Split ID into: <normalized-name>-<checksum> */
   final_hyphen = strrchr (id, '-');
   if (!final_hyphen) {
-    /* The id was derived from the profile dir and it's only the checksum part */
-    checksum = id;
-  } else {
-    checksum = final_hyphen + 1;
+    g_warning ("Web app ID %s is broken: must contain a hyphen", id);
+    return NULL;
   }
+  checksum = final_hyphen + 1;
 
   if (*checksum == '\0') {
     g_warning ("Web app ID %s is broken: should end with checksum, not hyphen", id);


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