04f9dcd236
- Add epiphany-application-mode-fix-desktopfile.patch: application mode: use strstr() to get base name of the desktop file (bgo#790781). OBS-URL: https://build.opensuse.org/request/show/561714 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/epiphany?expand=0&rev=274
33 lines
1.2 KiB
Diff
33 lines
1.2 KiB
Diff
From 967eec8db71ea9777765d1ffd8acf4196f9c37cb Mon Sep 17 00:00:00 2001
|
|
From: Jonathan Kang <jonathan121537@gmail.com>
|
|
Date: Fri, 29 Dec 2017 10:57:49 +0800
|
|
Subject: application mode: use strstr() to get base name of the desktop file
|
|
|
|
If the name of the web application include 'app', for expample
|
|
'WhatsApp', it might cause users unable to open the web application
|
|
any more.
|
|
|
|
Fix that by using strstr() to get the base name of that desktop
|
|
file instead of g_strrstr().
|
|
|
|
https://bugzilla.gnome.org/show_bug.cgi?id=790781
|
|
---
|
|
lib/ephy-web-app-utils.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/lib/ephy-web-app-utils.c b/lib/ephy-web-app-utils.c
|
|
index 4e3b471..d3afff4 100644
|
|
--- a/lib/ephy-web-app-utils.c
|
|
+++ b/lib/ephy-web-app-utils.c
|
|
@@ -350,7 +350,7 @@ ephy_web_application_setup_from_profile_directory (const char *profile_directory
|
|
|
|
g_return_if_fail (profile_directory != NULL);
|
|
|
|
- app_name = g_strrstr (profile_directory, EPHY_WEB_APP_PREFIX);
|
|
+ app_name = strstr (profile_directory, EPHY_WEB_APP_PREFIX);
|
|
if (!app_name) {
|
|
g_warning ("Profile directory %s does not begin with required web app prefix %s", profile_directory, EPHY_WEB_APP_PREFIX);
|
|
exit (1);
|
|
--
|
|
cgit v0.12
|