Skip to content

Commit

Permalink
Fix startup on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
maddie480 authored Oct 4, 2023
1 parent f96ab83 commit 20e9c66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/finder.lua
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ finder.defaultUWPName = "MattMakesGamesInc.Celeste_79daxvg0dq3v6"
-- enhance linux compatibility
local function getLinuxConfigDir()
local xdg_cfg = os.getenv("XDG_CONFIG_HOME")
if fs.isFile("/.flatpak-info") or xdg_cfg == "" then
if fs.isFile("/.flatpak-info") or xdg_cfg == "" or xdg_cfg == nil then
return fs.joinpath(os.getenv("HOME"), ".config")
end
return xdg_cfg
Expand Down

0 comments on commit 20e9c66

Please sign in to comment.