From 4dd64d7b2d202fe65ef7f17b89e22449325494b8 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Thu, 5 Sep 2013 17:39:08 +0200 Subject: slic3r: Work around strange config parsing bug Looks like passing --load multiple times lets Slic3r crash. Signed-off-by: Florian Pritz --- slic3r | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'slic3r') diff --git a/slic3r b/slic3r index f3e1753..a8ddc3d 100755 --- a/slic3r +++ b/slic3r @@ -1,7 +1,14 @@ #!/bin/bash +merged="$HOME/.Slic3r/config.ini.merged" + +truncate -s 0 "$merged" + for config in "$HOME"/.Slic3r/*/config.ini; do - opts+=(--load "$config") + #opts+=(--load "$config") + cat "$config" >> "$merged" done +opts+=(--load "$merged") + perl "$HOME"/git/Slic3r/slic3r.pl "${opts[@]}" "$@" -- cgit v1.2.3-24-g4f1b