summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Mikhaylenko <exalm7659@gmail.com>2020-11-05 12:42:07 +0500
committerAlexander Mikhaylenko <exalm7659@gmail.com>2020-11-05 12:42:07 +0500
commit20376503922be031253e28b6f3dc4fb14230f3f3 (patch)
treee1f2c2bc9a3f1d69dabd63cb87261837ded8d1e9
parentc8bc8d56a111ea8b49bfb46a8c69d12266836346 (diff)
downloadepiphany-wip/exalm/webapps-form-factors.tar.gz
web-app-utils: List compatible form factorswip/exalm/webapps-form-factors
Same as https://gitlab.gnome.org/GNOME/epiphany/-/commit/c8bc8d56a111ea8b49bfb46a8c69d12266836346, but for web apps.
-rw-r--r--lib/ephy-web-app-utils.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/ephy-web-app-utils.c b/lib/ephy-web-app-utils.c
index d89bdca58..48997774f 100644
--- a/lib/ephy-web-app-utils.c
+++ b/lib/ephy-web-app-utils.c
@@ -326,6 +326,9 @@ create_desktop_file (const char *id,
wm_class = g_strconcat (EPHY_WEB_APP_PROGRAM_NAME_PREFIX, id, NULL);
g_key_file_set_value (file, "Desktop Entry", "StartupWMClass", wm_class);
g_free (wm_class);
+
+ g_key_file_set_value (file, "Desktop Entry", "X-Purism-FormFactor", "Workstation;Mobile;");
+
data = g_key_file_to_data (file, NULL, NULL);
desktop_file_path = g_build_filename (profile_dir, filename, NULL);