summarylogtreecommitdiffstats
path: root/Move-Slic3r-data-to-usr-share-slic3r.patch
blob: 57569ff57408d8b44a8aee78d33dbebc90dd5c0c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
diff --git a/lib/Slic3r.pm b/lib/Slic3r.pm
index 5f4357a9..e37a5e17 100644
--- a/lib/Slic3r.pm
+++ b/lib/Slic3r.pm
@@ -49,7 +49,7 @@ warn "Running Slic3r under Perl 5.16 is neither supported nor recommended\n"
 
 use FindBin;
 # Path to the images.
-our $var = sub { decode_path($FindBin::Bin) . "/var/" . $_[0] };
+our $var = sub { '/usr/share/slic3r-prusa3d/' . $_[0] };
 
 use Moo 1.003001;
 
diff --git a/slic3r.pl b/slic3r.pl
index c1371472..6cd50804 100755
--- a/slic3r.pl
+++ b/slic3r.pl
@@ -5,7 +5,7 @@ use warnings;
 
 BEGIN {
     use FindBin;
-    use lib "$FindBin::Bin/lib";
+    use lib "$FindBin::Bin/lib", "/usr/lib/slic3r-prusa3d/";
 }
 
 use File::Basename qw(basename);