diff options
| author | Dana Jansens <danakj@orodu.net> | 2010-05-21 20:10:34 -0400 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2010-05-21 20:10:34 -0400 |
| commit | 475961e17fd58a18f6137aefdc6e52578ce46d41 (patch) | |
| tree | f5afa766a1307e6f3737b0e8b4a4c22743b5894e | |
| parent | 0c8c9caba6f529c11b04643d24a5a503f49a245b (diff) | |
parse Path, Terminal, and StartupNotify
| -rw-r--r-- | obt/link.c | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -138,6 +138,24 @@ ObtLink* obt_link_from_ddfile(const gchar *ddname, GSList *paths, obt_paths_try_exec(p, v->value.string); } + if ((v = g_hash_table_lookup(keys, "Path"))) { + /* steal the string */ + link->d.app.wdir = v->value.string; + v->value.string = NULL; + } + + if ((v = g_hash_table_lookup(keys, "Terminal"))) + link->d.app.term = v->value.boolean; + + if ((v = g_hash_table_lookup(keys, "StartupNotify"))) + link->d.app.startup = v->value.boolean ? + OBT_LINK_APP_STARTUP_PROTOCOL_SUPPORT : + OBT_LINK_APP_STARTUP_NO_SUPPORT; + else + link->d.app.startup = OBT_LINK_APP_STARTUP_LEGACY_SUPPORT; + + /* XXX parse link->d.app.exec to determine link->d.app.open */ + /* XXX there's more app specific stuff */ } |
