run user lua afer cmder lua

This commit is contained in:
Dax T. Games 2018-09-01 14:59:40 -04:00
parent e93231114f
commit e69e7f9b82
2 changed files with 12 additions and 10 deletions

View File

@ -363,7 +363,7 @@ void UnregisterShellMenu(std::wstring opt, wchar_t* keyBaseName)
{
HKEY root = GetRootKey(opt);
HKEY cmderKey;
// FAIL_ON_ERROR(RegCreateKeyEx(root, keyBaseName, 0, NULL, REG_OPTION_NON_VOLATILE, KEY_ALL_ACCESS, NULL, &cmderKey, NULL));
FAIL_ON_ERROR(RegCreateKeyEx(root, keyBaseName, 0, NULL, REG_OPTION_NON_VOLATILE, KEY_ALL_ACCESS, NULL, &cmderKey, NULL));
FAIL_ON_ERROR(RegDeleteTree(cmderKey, NULL));
RegDeleteKeyEx(root, keyBaseName, KEY_ALL_ACCESS, NULL);
RegCloseKey(cmderKey);

6
vendor/clink.lua vendored
View File

@ -370,8 +370,9 @@ for _,lua_module in ipairs(clink.find_files(cmder_config_dir..'*.lua')) do
end
end
local cmder_user_config_dir = clink.get_env('CMDER_USER_CONFIG')..'/'
for _,lua_module in ipairs(clink.find_files(cmder_user_config_dir..'*.lua')) do
if clink.get_env('CMDER_USER_CONFIG') then
local cmder_user_config_dir = clink.get_env('CMDER_USER_CONFIG')..'/'
for _,lua_module in ipairs(clink.find_files(cmder_user_config_dir..'*.lua')) do
-- Skip files that starts with _. This could be useful if some files should be ignored
if not string.match(lua_module, '^_.*') then
local filename = cmder_user_config_dir..lua_module
@ -379,4 +380,5 @@ for _,lua_module in ipairs(clink.find_files(cmder_user_config_dir..'*.lua')) do
-- so config reloading using Alt-Q won't reload updated modules.
dofile(filename)
end
end
end