Files
diya-shell/hooks/check_compiled_schemas.lua
Dany LE 377eaf7d84 feat: Add hook mechanism + use gsettings:
- Allow to install hooks that execute lua scripts on changes of watched files
- Use gsetting to store shell parameters such as: theme, idle-timeout, etc.
2025-10-13 18:08:50 +02:00

9 lines
427 B
Lua

local compiled_schemas = diya.system.user_config_dir() .. "/diya/schemas/gschemas.compiled"
if not diya.system.file_exists(compiled_schemas) then
diya.system.log_info("Regenerating "..compiled_schemas)
local script_path = debug.getinfo(1, "S").source:sub(2)
local script_dir = script_path:match("(.*/)")
local script_compile_schemas = script_dir .. "/compile_schemas.lua"
dofile(script_compile_schemas)
end