Skip to content

Commit

Permalink
if TMPDIR is set, use that for tmp_dir
Browse files Browse the repository at this point in the history
  • Loading branch information
tatsumoto-ren committed Nov 1, 2022
1 parent 96c587e commit 2b78048
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion platform/nix.lua
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ local clip = (function()
end)()

self.tmp_dir = function()
return '/tmp'
return os.getenv("TMPDIR") or '/tmp'
end

self.copy_to_clipboard = function(text)
Expand Down

0 comments on commit 2b78048

Please sign in to comment.