Too defensive
This commit is contained in:
@@ -187,7 +187,7 @@ hl = setmetatable({
|
|||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
local config = (os.getenv("HOME") or "") .. "/.config/hypr/hyprland.lua"
|
local config = os.getenv("HOME") .. "/.config/hypr/hyprland.lua"
|
||||||
local file = io.open(config, "r")
|
local file = io.open(config, "r")
|
||||||
|
|
||||||
if file then
|
if file then
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
-- Lua files loaded with require() have separate local scopes, so modules that
|
-- Lua files loaded with require() have separate local scopes, so modules that
|
||||||
-- need these paths import this table instead of repeating os.getenv() lookups.
|
-- need these paths import this table instead of repeating os.getenv() lookups.
|
||||||
|
|
||||||
local home = os.getenv("HOME") or ""
|
local home = os.getenv("HOME")
|
||||||
|
|
||||||
return {
|
return {
|
||||||
home = home,
|
home = home,
|
||||||
|
|||||||
Reference in New Issue
Block a user