Vojtech Bubnik
b25e914703
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
8199e4051e
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
b1d28fca9e
Instance check on windows: concider whole window name when searching for another instance
2020-11-25 12:28:10 +01:00
Vojtech Bubnik
ccd678cd7f
fixed typo in comment & formatting
2020-11-21 11:43:54 +01:00
David Kocik
58f2c9b2bd
boost canonical fix at instance check. Hopefully a fix of #4973
2020-11-17 15:03:34 +01:00
Lukas Matena
322d78a9dc
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
24972abcd3
boost::filesystem::canonical at non windows instance check path to binary
2020-10-15 15:22:46 +02:00
Vojtech Bubnik
c891ab0fc7
Fix of Compile error in InstanceCheck.cpp on Linux ( #4877 )
2020-10-15 07:45:36 +02:00
David Kocik
d707a5086e
order of checking lockfile in instance check
2020-10-14 18:17:42 +02:00
David Kocik
73e3e9b7f8
instance check - command line analysis - not return if only 1 argument
2020-10-14 14:46:52 +02:00
David Kocik
106acca1be
bug fix std::optional on mac
2020-10-14 09:26:06 +02:00
David Kocik
cc7b1b773a
switching from slicer to gcode viewer - unlocking lock file
2020-10-14 08:48:38 +02:00
Lukas Matena
d401763e3e
Fix build on macOS
...
std::optional<T>::value() not yet available
2020-10-13 13:51:47 +02:00
Vojtech Bubnik
6e04ab02e7
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
0217aeda32
InstanceCheck: typo in DBus function name
2020-09-25 15:13:01 +02:00
David Kocik
7dbe244bdc
instance check - bug fixes and refactoring based on code review.
2020-09-24 17:19:19 +02:00
Lukas Matena
edcaab8b0a
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
2ef07b9043
instance check: bux fix in shutdown() - repairs falling at assert when reiniting otherInstanceMessageHandler
2020-05-18 08:33:55 +02:00
David Kocik
c1a25dff5a
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
c3f0ef7a84
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
4102c86b5d
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