Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Commit

Permalink
use $XDG_DATA_HOME if available
Browse files Browse the repository at this point in the history
  • Loading branch information
dickeyxxx committed Nov 5, 2015
1 parent 4f9e18d commit 49e40e4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/heroku/jsplugin.rb
Expand Up @@ -110,6 +110,8 @@ def self.version
def self.app_dir
if windows? && ENV['LOCALAPPDATA']
File.join(ENV['LOCALAPPDATA'], 'heroku').encode('windows-1252')
elsif ENV['XDG_DATA_HOME']
File.join(ENV['XDG_DATA_HOME'], 'heroku')
else
File.join(Heroku::Helpers.home_directory, '.heroku')
end
Expand Down

0 comments on commit 49e40e4

Please sign in to comment.