diff --git a/lib/spring/env.rb b/lib/spring/env.rb index 0cd8a2b7..f32c9021 100644 --- a/lib/spring/env.rb +++ b/lib/spring/env.rb @@ -32,7 +32,7 @@ def version end def tmp_path - path = Pathname.new(Dir.tmpdir + "/spring") + path = Pathname.new(File.join(ENV['XDG_RUNTIME_DIR'] || Dir.tmpdir, "spring")) FileUtils.mkdir_p(path) unless path.exist? path end