Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Lenox <lenox.joseph@gmail.com>2017-09-02 21:36:20 +0300
committerbubnikv <bubnikv@gmail.com>2017-11-30 20:42:31 +0300
commit488feb23352b07c27b07468408f1318dd745810f (patch)
tree5ce86680ada44081a8ad7c74fab5f751d196fd87 /slic3r.pl
parentd161d4f78cd1f3ebcc4de1878574094225447fe6 (diff)
Added --no-gui flag to force CLI usage (allows for CLI usage with AppImage build).
Forced --gui flag in AppImage build.
Diffstat (limited to 'slic3r.pl')
-rwxr-xr-xslic3r.pl5
1 files changed, 4 insertions, 1 deletions
diff --git a/slic3r.pl b/slic3r.pl
index e49457c20..3a13c8230 100755
--- a/slic3r.pl
+++ b/slic3r.pl
@@ -31,6 +31,7 @@ my %cli_options = ();
'debug' => \$Slic3r::debug,
'gui' => \$opt{gui},
+ 'no-gui' => \$opt{no_gui},
'o|output=s' => \$opt{output},
'save=s' => \$opt{save},
@@ -102,7 +103,7 @@ $config->apply($cli_config);
# launch GUI
my $gui;
-if ((!@ARGV || $opt{gui}) && !$opt{save} && eval "require Slic3r::GUI; 1") {
+if ((!@ARGV || $opt{gui}) && !(!@ARGV || $opt{no_gui}) && !$opt{save} && eval "require Slic3r::GUI; 1") {
{
no warnings 'once';
$Slic3r::GUI::datadir = Slic3r::decode_path($opt{datadir} // '');
@@ -267,6 +268,8 @@ Usage: slic3r.pl [ OPTIONS ] [ file.stl ] [ file2.stl ] ...
--gui Forces the GUI launch instead of command line slicing (if you
supply a model file, it will be loaded into the plater)
--no-plater Disable the plater tab
+ --no-gui Forces the command line slicing instead of gui.
+ This takes precedence over --gui if both are present.
--autosave <file> Automatically export current configuration to the specified file
Output options: