[epiphany/gnome-40] Revert "Fix web app GApplication ID calculation"
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany/gnome-40] Revert "Fix web app GApplication ID calculation"
- Date: Thu, 20 Jan 2022 02:20:42 +0000 (UTC)
commit 796823666be46a93606bc31cde271d46eee2ce78
Author: Michael Catanzaro <mcatanzaro gnome org>
Date: Thu Jan 20 02:20:42 2022 +0000
Revert "Fix web app GApplication ID calculation"
This reverts commit 9ae8338e74444f70c7ea0c808da8152bbab585ce
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 f23cc950d..5ea111b42 100644
--- a/lib/ephy-web-app-utils.c
+++ b/lib/ephy-web-app-utils.c
@@ -130,11 +130,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]