discomfitor pushed a commit to branch master.

http://git.enlightenment.org/apps/empc.git/commit/?id=76f028fc6f677b578c267ff39179098dafeced39

commit 76f028fc6f677b578c267ff39179098dafeced39
Author: Mike Blumenkrantz <zm...@osg.samsung.com>
Date:   Sun Dec 28 20:00:53 2014 -0500

    check ~/.config/empc/modules for homedir modules
    
    this probably isn't xdg-approved but I'm too lazy to figure out where 
modules are supposed to go
---
 src/bin/empc.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/bin/empc.c b/src/bin/empc.c
index 584bbfc..a3db7f8 100644
--- a/src/bin/empc.c
+++ b/src/bin/empc.c
@@ -3509,6 +3509,13 @@ main(int argc, char *argv[])
    modpath = getenv("EMPC_MODULE_DIR");
    mods = eina_module_list_get(NULL, modpath ?: EMPC_MODULE_PATH, EINA_FALSE, 
(Eina_Module_Cb)module_check, NULL);
    eina_array_free(mods);
+   {
+      char buf[PATH_MAX];
+
+      snprintf(buf, sizeof(buf), "%s/empc/modules", efreet_config_home_get());
+      mods = eina_module_list_get(NULL, buf, EINA_FALSE, 
(Eina_Module_Cb)module_check, NULL);
+      eina_array_free(mods);
+   }
 
    E_LIST_HANDLER_APPEND(handlers, EMPD_EMPDD_CONNECTED_EVENT, empc_connected, 
NULL);
    E_LIST_HANDLER_APPEND(handlers, EMPD_EMPDD_DISCONNECTED_EVENT, 
empc_disconnected, NULL);

-- 


Reply via email to