[epiphany] shell: Use a different application-id for web apps
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] shell: Use a different application-id for web apps
- Date: Sun, 5 Mar 2017 17:29:02 +0000 (UTC)
commit 2ddf52db91ac594bd30380ea321d3c857307f8c2
Author: Florian Müllner <fmuellner gnome org>
Date: Mon Feb 20 22:17:57 2017 +0100
shell: Use a different application-id for web apps
Since epiphany renamed its .desktop file, web apps no longer appear
as separate applications in GNOME, but are all grouped under the
regular epiphany application. This happens because the GApplication
ID is among the properties gnome-shell uses to match a .desktop file
to a window, and as that match now succeeds, the WM_CLASS that points
to the correct .desktop file is not used at all.
It may be nice to make web apps' .desktop files use reverse notation
as well in the future and use a matching GApplication ID, but for now
just using an ID that cannot be resolved to a .desktop file is enough
to make gnome-shell fall back to matching on the WM_CLASS again.
https://bugzilla.gnome.org/show_bug.cgi?id=778985
src/ephy-shell.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/src/ephy-shell.c b/src/ephy-shell.c
index 18b1cd7..decc08b 100644
--- a/src/ephy-shell.c
+++ b/src/ephy-shell.c
@@ -902,10 +902,15 @@ ephy_shell_get_prefs_dialog (EphyShell *shell)
void
_ephy_shell_create_instance (EphyEmbedShellMode mode)
{
+ const char *id;
+
g_assert (ephy_shell == NULL);
+ id = (mode == EPHY_EMBED_SHELL_MODE_APPLICATION ? "org.gnome.Epiphany.WebApp"
+ : "org.gnome.Epiphany");
+
ephy_shell = EPHY_SHELL (g_object_new (EPHY_TYPE_SHELL,
- "application-id", "org.gnome.Epiphany",
+ "application-id", id,
"mode", mode,
NULL));
/* FIXME weak ref */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]