File indexing completed on 2024-05-19 04:27:04

0001 /* This file is part of the KDE project
0002  * SPDX-FileCopyrightText: 2023 Ivan Santa MarĂ­a <ghevan@gmail.com>
0003  *
0004  * SPDX-License-Identifier: LGPL-2.0-or-later
0005  */
0006 
0007 #ifndef KisMacosSystemProber_h
0008 #define KisMacosSystemProber_h
0009 
0010 #ifdef __cplusplus
0011 extern "C" {
0012 #endif
0013 
0014 /**
0015  * returns true if there is another krita instance running
0016  * This method is reliant on NSWorkspace information
0017  *
0018  * Use this instead of QSharedMemory to ensure only one
0019  * instance of krita is ever launched, this works with or
0020  * without sandbox sessions
0021  */
0022 bool iskritaRunningActivate(void);
0023 
0024 #ifdef __cplusplus
0025 }
0026 #endif
0027 
0028 #endif /* KisMacosSystemProber_h */