Add the rest of the info from .eaps.

SVN revision: 25815
This commit is contained in:
David Walter Seikel 2006-09-13 13:51:39 +00:00
parent 58bac73387
commit 1e85cc6bf8
2 changed files with 13 additions and 1 deletions

View File

@ -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.

View File

@ -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;