main: use IPC to terminate secondary client during re-install(win)
To coordinate the MSI installer with Jami's close-to-tray feature, a custom action was used to kill QtWebEngineProcess and Jami, prior to the file installation step. The close-to-tray feature makes it so the only way to terminate the app is via the systray context menu. This patch harnesses the IPC mechanism used by the run-guard, and adds a command-line option('--term') used to signal the secondary process and provoke graceful termination. The benefits are: - the app can save data before closing - system tray icons aren't left dangling after updates - QtWebEngineProcess is guaranteed to be terminated during install Gitlab: #654 Gitlab: #543 Change-Id: I79421eeab49c9ec0826010af99a364471bb81d1a
Showing
- CMakeLists.txt 2 additions, 2 deletionsCMakeLists.txt
- JamiInstaller/Config.wxi 2 additions, 0 deletionsJamiInstaller/Config.wxi
- JamiInstaller/Product.wxs 7 additions, 6 deletionsJamiInstaller/Product.wxs
- JamiInstaller/StandardComponents.wxs 1 addition, 1 deletionJamiInstaller/StandardComponents.wxs
- src/instancemanager.cpp 208 additions, 0 deletionssrc/instancemanager.cpp
- src/instancemanager.h 9 additions, 27 deletionssrc/instancemanager.h
- src/main.cpp 14 additions, 19 deletionssrc/main.cpp
- src/mainapplication.cpp 25 additions, 33 deletionssrc/mainapplication.cpp
- src/mainapplication.h 18 additions, 2 deletionssrc/mainapplication.h
- src/runguard.cpp 0 additions, 136 deletionssrc/runguard.cpp
Loading
Please register or sign in to comment