From 1e85cc6bf8b5105eedb19e6d0cc7a59a19a80b3f Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Wed, 13 Sep 2006 13:51:39 +0000 Subject: [PATCH] Add the rest of the info from .eaps. SVN revision: 25815 --- doc/FDO.txt | 6 +++++- src/bin/e_apps.c | 8 ++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/doc/FDO.txt b/doc/FDO.txt index 61ee2cdbe..66722297a 100644 --- a/doc/FDO.txt +++ b/doc/FDO.txt @@ -22,7 +22,7 @@ start up. .desktop. -Two extension fields are defined as allowed by the specification. +Some extension fields are defined as allowed by the specification. X-Enlightenment-IconPath is used to specify an absolute or relative path to an icon file. If it exists it overrides any other icon specifications. @@ -48,6 +48,10 @@ path, then it is simply used with no searching. Converted .eaps should just copy the app/icon/class data to the X-Enlightenment-IconClass field. +X-Enlightenment-WindowName, X-Enlightenment-WindowTitle, +X-Enlightenment-WindowRole, and X-Enlightenment-WaitExit are just the same +as their namesakes in .eaps. + Icon theme. diff --git a/src/bin/e_apps.c b/src/bin/e_apps.c index e88866e1c..7d51a41c6 100644 --- a/src/bin/e_apps.c +++ b/src/bin/e_apps.c @@ -1240,8 +1240,12 @@ e_app_fields_fill(E_App *a, const char *path) if (desktop->exec_params) a->exe_params = evas_stringshare_add(desktop->exec_params); if (desktop->icon_class) a->icon_class = evas_stringshare_add(desktop->icon_class); if (desktop->icon_path) a->icon_path = evas_stringshare_add(desktop->icon_path); + if (desktop->window_name) a->win_name = evas_stringshare_add(desktop->window_name); if (desktop->window_class) a->win_class = evas_stringshare_add(desktop->window_class); + if (desktop->window_title) a->win_title = evas_stringshare_add(desktop->window_title); + if (desktop->window_role) a->win_role = evas_stringshare_add(desktop->window_role); a->startup_notify = desktop->startup; + a->wait_exit = desktop->wait_exit; // if (desktop->type) a->type = evas_stringshare_add(desktop->type); // if (desktop->categories) a->categories = evas_stringshare_add(desktop->categories); @@ -1368,8 +1372,12 @@ e_app_fields_save(E_App *a) desktop->exec_params = (char *) a->exe_params; desktop->icon_class = (char *) a->icon_class; desktop->icon_path = (char *) a->icon_path; + desktop->window_name = (char *) a->win_name; desktop->window_class = (char *) a->win_class; + desktop->window_title = (char *) a->win_title; + desktop->window_role = (char *) a->win_role; desktop->startup = a->startup_notify; + desktop->wait_exit = a->wait_exit; desktop->type = "Application"; // desktop.categories = a->categories;