aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorXan Lopez <xan@igalia.com>2012-05-09 18:23:16 +0800
committerXan Lopez <xan@igalia.com>2012-05-09 18:23:16 +0800
commitf3a7c0fe44514d52f5a475e93470afea80390895 (patch)
treec7a442ac08d08ca5ee46e04f4eec0597aa61a07a /lib
parent6b7c59939699ce94931009f1086e92f773306a1e (diff)
downloadgsoc2013-epiphany-f3a7c0fe44514d52f5a475e93470afea80390895.tar
gsoc2013-epiphany-f3a7c0fe44514d52f5a475e93470afea80390895.tar.gz
gsoc2013-epiphany-f3a7c0fe44514d52f5a475e93470afea80390895.tar.bz2
gsoc2013-epiphany-f3a7c0fe44514d52f5a475e93470afea80390895.tar.lz
gsoc2013-epiphany-f3a7c0fe44514d52f5a475e93470afea80390895.tar.xz
gsoc2013-epiphany-f3a7c0fe44514d52f5a475e93470afea80390895.tar.zst
gsoc2013-epiphany-f3a7c0fe44514d52f5a475e93470afea80390895.zip
ephy-web-app-utils: add the desktop file name to EphyWebApplication
It's quite cumbersome to re-construct from its name and URL, so just add it here. We'll use it to migrate the profile data.
Diffstat (limited to 'lib')
-rw-r--r--lib/ephy-web-app-utils.c3
-rw-r--r--lib/ephy-web-app-utils.h1
2 files changed, 4 insertions, 0 deletions
diff --git a/lib/ephy-web-app-utils.c b/lib/ephy-web-app-utils.c
index 53bf687db..8c5d65366 100644
--- a/lib/ephy-web-app-utils.c
+++ b/lib/ephy-web-app-utils.c
@@ -399,6 +399,8 @@ ephy_web_application_get_application_list ()
desktop_file = g_strconcat (name + prefix_length, ".desktop", NULL);
desktop_file_path = g_build_filename (profile_dir, desktop_file, NULL);
+ app->desktop_file = g_strdup (desktop_file);
+
if (g_file_get_contents (desktop_file_path, &contents, NULL, NULL)) {
char *exec;
char **strings;
@@ -458,6 +460,7 @@ ephy_web_application_free (EphyWebApplication *app)
g_free (app->name);
g_free (app->icon_url);
g_free (app->url);
+ g_free (app->desktop_file);
g_slice_free (EphyWebApplication, app);
}
diff --git a/lib/ephy-web-app-utils.h b/lib/ephy-web-app-utils.h
index 80dde2b21..54968df80 100644
--- a/lib/ephy-web-app-utils.h
+++ b/lib/ephy-web-app-utils.h
@@ -33,6 +33,7 @@ typedef struct {
char *name;
char *icon_url;
char *url;
+ char *desktop_file;
char install_date[128];
} EphyWebApplication;