Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion lib/Data/Printer/Config.pm
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,10 @@ sub _get_first_rc_file_available {
$dir = $updir;
}
# still here? look for .dataprinter on the user's HOME:
return File::Spec->catfile( _my_home(), '.dataprinter');
my $file = File::Spec->catfile( _my_home(), '.dataprinter');
return $file if -f $file;
# still no luck? :( look for dataprinter/config in XDG_CONFIG_HOME
return File::Spec->catfile($ENV{XDG_CONFIG_HOME}, 'dataprinter', 'config');
}

sub _my_cwd {
Expand Down