summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Kang <jonathan121537@gmail.com>2017-12-29 10:57:49 +0800
committerJonathan Kang <jonathan121537@gmail.com>2017-12-29 10:57:49 +0800
commit521a0e6cc09d09f8aafe152ed90ac2e12869dec0 (patch)
tree4b5e06c34b18262bf7062c282ad655e5e25c22bd
parent9fe2c06d1467367942480c73a8bb85027747018a (diff)
downloadepiphany-521a0e6cc09d09f8aafe152ed90ac2e12869dec0.tar.gz
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
-rw-r--r--lib/ephy-web-app-utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ephy-web-app-utils.c b/lib/ephy-web-app-utils.c
index 9a35887d9..0295b7345 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_assert (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);