1
0
mirror of https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git synced 2026-07-11 08:04:25 +00:00
Commit Graph

26 Commits

Author SHA1 Message Date
David Kocik 15d9751919 Delete lockfile at shutdown on linux and mac.
Passing lockfile on mac by sending message .
2021-02-24 09:31:51 +01:00
Lukas Matena d9c9de8eee Fixing GCC warnings 3 2021-01-29 10:47:02 +01:00
Vojtech Bubnik 7d751753bc Replaced __linux macro with __linux__ 2021-01-11 13:31:30 +01:00
Vojtech Bubnik d46a756b98 Finally fixing the single instance for AppImage 2021-01-11 11:41:22 +01:00
Vojtech Bubnik a900b7767b Fix of previous commit 2021-01-11 11:29:27 +01:00
Vojtech Bubnik 7780221683 Fixed "Single instance" locking issue on Linux with AppImage,
where the PrusaSlicer binary is mounted at a different mount point
at each AppImage execution.
Fixes Lock files in the local configuration directory are not deleted (#5733)
2021-01-11 11:14:59 +01:00
Vojtech Bubnik bd79036d13 Replaced all "long long" types with int64_t
Replaced all "unsigned long long" types with uint64_t.
These "new" types better communicate their meaning and they are
guaranteed to behave the same on all platforms & compilers.
2020-12-10 08:40:15 +01:00
David Kocik 3d78ae9271 Instance check on windows: concider whole window name when searching for another instance 2020-11-25 12:28:10 +01:00
Vojtech Bubnik 288dbfd0d8 fixed typo in comment & formatting 2020-11-21 11:43:54 +01:00
David Kocik 16dd7c74f1 boost canonical fix at instance check. Hopefully a fix of #4973 2020-11-17 15:03:34 +01:00
Lukas Matena a47e94ebd5 Fix of #4889 (malfunctioning single instance detection on macOS):
This was hapenning because the datadir did not exist yet, which was interpreted as another instance running.
2020-10-19 11:08:03 +02:00
David Kocik 7531da603b boost::filesystem::canonical at non windows instance check path to binary 2020-10-15 15:22:46 +02:00
Vojtech Bubnik 263759aca6 Fix of Compile error in InstanceCheck.cpp on Linux (#4877) 2020-10-15 07:45:36 +02:00
David Kocik 6eee0c043c order of checking lockfile in instance check 2020-10-14 18:17:42 +02:00
David Kocik 83bd7ce7ab instance check - command line analysis - not return if only 1 argument 2020-10-14 14:46:52 +02:00
David Kocik 2f5bce3d53 bug fix std::optional on mac 2020-10-14 09:26:06 +02:00
David Kocik 453408143f switching from slicer to gcode viewer - unlocking lock file 2020-10-14 08:48:38 +02:00
Lukas Matena 04e18025f9 Fix build on macOS
std::optional<T>::value() not yet available
2020-10-13 13:51:47 +02:00
Vojtech Bubnik 8c0b8f89d0 Updated the command line single-instance processing and help text.
Updated escaping of the command line arguments when passed to the other
instance.
2020-10-12 17:06:03 +02:00
David Kocik 54fbbb1a23 InstanceCheck: typo in DBus function name 2020-09-25 15:13:01 +02:00
David Kocik 8ea4b5fd78 instance check - bug fixes and refactoring based on code review. 2020-09-24 17:19:19 +02:00
Lukas Matena 48c186331a Includes cleanup:
GUI_App.hpp      (should not include) MainFrame.hpp
MainFrame.hpp    Plater.hpp
ModelArrange.hpp Model.hpp
Slicing.hpp      PrintConfig.hpp
FillBase.hpp     PrintConfig.hpp
GUI_App.hpp      PrintConfig.hpp
OptionsGroup.hpp GUI_App.hpp
2020-05-27 14:01:47 +02:00
David Kocik 9ec83d5210 instance check: bux fix in shutdown() - repairs falling at assert when reiniting otherInstanceMessageHandler 2020-05-18 08:33:55 +02:00
David Kocik 69e9805982 Own implementation of lockfile instead of wx on linux/mac. Wx version keeps poping up messege boxes after crash. Own implementation doesnt delete lockfile after use. 2020-05-15 09:34:53 +02:00
David Kocik 65a37ffaa1 single instance check
processing paths with whitespaces
unified lock for all systems - wxInstanceChecker
checking a messaging only for same binaries
2020-05-15 09:34:53 +02:00
David Kocik d828a1e80b single slicer instance
check for other instances during startup
send message with command line arguments if found and terminate
listen for those messages and load objects from paths in messages from them
2020-04-29 10:53:48 +02:00