/** Execute another application, probably a window manager, to replace
 * awesome.
 * \param L The Lua VM state.
 * \return The number of elements pushed on stack.
 * \luastack
 * \lparam The command line to execute.
 */
static int
luaA_exec(lua_State *L)
{
    const char *cmd = luaL_checkstring(L, 1);

    awesome_atexit(false);

    a_exec(cmd);
    return 0;
}
void
awesome_restart(void)
{
    awesome_atexit(true);
    a_exec(globalconf.argv);
}
Exemple #3
0
void
awesome_restart(void)
{
    awesome_atexit(true);
    a_exec(awesome_argv);
}