A Qt 6 / QML application that ensures only a single instance of the app runs at a time.
- Prevents multiple instances from running simultaneously.
- Lightweight and cross-platform (Windows, Linux, macOS).
- Smooth UI with effects and theming support.
- Language: C++
- UI: Qt Quick / QML
- Framework: Qt 6
- Build System: CMake
- Platform: Windows (primary), Linux, macOS
- Extras: Single-instance protection via
QSharedMemory+QSystemSemaphore.
- Qt 6.x
Contributions are welcome. Please open an issue or submit a pull request.
Created by Saif GitHub: https://github.com/Saif-k93
Clone the repository and build using CMake:
git clone https://github.com/Saif-k93/SingleInstance.git
cd SingleInstance
cmake -S . -B build
cmake --build build
For Windows (MSVC):
bash
Copy code
cmake -S . -B build -G "Visual Studio 17 2022"
cmake --build build --config Release
---
▶️ Run
Run the generated executable from the build directory.
The app will prevent opening multiple instances and show a message if another instance is already running.