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:
authorVojtech Bubnik <bubnikv@gmail.com>2021-03-15 18:19:22 +0300
committerVojtech Bubnik <bubnikv@gmail.com>2021-03-15 18:19:22 +0300
commit01406fd52182d72cf1789174dd64ee4284e9f2cc (patch)
tree4ce3cdc519ed1cb16b44096fd7c92aeab9b811ef /src/PrusaSlicer.cpp
parent84a333e4eda49fe8d3c15aeda1c44ccd75933b49 (diff)
Worked around some quirky Linux file system issues. Namely
the Chromebooks share their file system to Linux using the 9p file system, which does not support setting file ownership. Newly PrusaSlicer will detect platform and it will not panick if copy_file() cannot set file ownership after copying. It just logs the incident, and on chromebooks the loglevel for that incident is "Info", not "Error". Adjusted the full screen mode to contain menu bar. Moved Platform.cpp/hpp to libslic3r
Diffstat (limited to 'src/PrusaSlicer.cpp')
-rw-r--r--src/PrusaSlicer.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/PrusaSlicer.cpp b/src/PrusaSlicer.cpp
index ed2d70272..10da1cb07 100644
--- a/src/PrusaSlicer.cpp
+++ b/src/PrusaSlicer.cpp
@@ -38,6 +38,7 @@
#include "libslic3r/GCode/PostProcessor.hpp"
#include "libslic3r/Model.hpp"
#include "libslic3r/ModelArrange.hpp"
+#include "libslic3r/Platform.hpp"
#include "libslic3r/Print.hpp"
#include "libslic3r/SLAPrint.hpp"
#include "libslic3r/TriangleMesh.hpp"
@@ -68,6 +69,8 @@ int CLI::run(int argc, char **argv)
{
// Mark the main thread for the debugger and for runtime checks.
set_current_thread_name("slic3r_main");
+ // Detect the operating system flavor.
+ detect_platform();
#ifdef __WXGTK__
// On Linux, wxGTK has no support for Wayland, and the app crashes on