[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[misc/entrance] master 01/01: entrance: use login command everywhere



yoz pushed a commit to branch master.

commit 519342a564f4f07a5abba9df8f7c22013295bffe
Author: Michael Bouchaud <yoz@efl.so>
Date:   Mon Sep 16 22:22:47 2013 +0200

    entrance: use login command everywhere
---
 src/daemon/entrance_session.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/daemon/entrance_session.c b/src/daemon/entrance_session.c
index 9cd56d7..f02c73c 100644
--- a/src/daemon/entrance_session.c
+++ b/src/daemon/entrance_session.c
@@ -358,7 +358,12 @@ _entrance_session_find_command(const char *path, const char *session)
              if (!strcmp(xsession->name, session))
                {
                   if (xsession->command)
-                    return xsession->command;
+                    {
+                       snprintf(buf, sizeof(buf), "%s %s",
+                                entrance_config->command.session_login,
+                                xsession->command);
+                       return eina_stringshare_add(buf);
+                    }
                }
           }
      }

--