Skip to content

Commit 9cd21d2

Browse files
committed
Merge pull request #344 from peterhoeg/master
prefer $XDG_RUNTIME_DIR for pid file and socket
2 parents ae199d3 + 7d7f33e commit 9cd21d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/spring/env.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def version
3232
end
3333

3434
def tmp_path
35-
path = Pathname.new(Dir.tmpdir + "/spring")
35+
path = Pathname.new(File.join(ENV['XDG_RUNTIME_DIR'] || Dir.tmpdir, "spring"))
3636
FileUtils.mkdir_p(path) unless path.exist?
3737
path
3838
end

0 commit comments

Comments
 (0)