Fix machine-generated Hyprland config never loading
Lua's require() treats dots in the module string as directory separators, so pcall(require, "conf.d.autostart") resolved to conf/d/autostart.lua instead of the real conf.d/autostart.lua. The failure was silently swallowed by pcall, so autostart/locale/nvidia/ terminal configs never took effect on any machine using this repo. Renamed the generated directory to confd (no dot) and updated the require calls to match.
This commit is contained in:
1 parent
7947a628ed
commit
cb96dd6159
2 files changed
+10
-8
No files matched your search
@@ -11,7 +11,7 @@ hl.config({
|
||||
})
|
||||
|
||||
-- machine-generated by src/install.ts based on chosen packages/detected hardware/locale
|
||||
pcall(require, "conf.d.autostart")
|
||||
pcall(require, "conf.d.locale")
|
||||
pcall(require, "conf.d.nvidia")
|
||||
pcall(require, "conf.d.terminal")
|
||||
pcall(require, "confd.autostart")
|
||||
pcall(require, "confd.locale")
|
||||
pcall(require, "confd.nvidia")
|
||||
pcall(require, "confd.terminal")
|
||||
Reference in new issue
Block a user