slic3r/slic3r-datadir.patch

14 lines
444 B
Diff
Raw Normal View History

2015-06-29 12:38:50 +00:00
diff --git a/lib/Slic3r.pm b/lib/Slic3r.pm
index 154af90..ef8274c 100644
--- a/lib/Slic3r.pm
+++ b/lib/Slic3r.pm
@@ -42,7 +42,7 @@ warn "Running Slic3r under Perl 5.16 is neither supported nor recommended\n"
2015-06-29 12:38:50 +00:00
use FindBin;
# Path to the images.
-my $varpath = decode_path($FindBin::Bin) . "/var";
+my $varpath = "/usr/share/slic3r";
if ($^O eq 'darwin' && !-d $varpath) {
$varpath = decode_path($FindBin::Bin) . "/../Resources/var";
}