You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+16Lines changed: 16 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -188,6 +188,22 @@ if (!isSingleInstance) {
188
188
189
189
In this example, the `SingleInstanceManager` will check if an instance is already running. If not, it will acquire the lock and start watching for restore requests. If an instance is already running, it will send a restore request to bring the existing window to the foreground, allowing you to focus on the already-running application rather than starting a new instance.
This is useful when you need single-instance management but want finer-grained control.
201
+
202
+
By specifying a custom `lockFilesDir`, you limit the scope of single-instance management
203
+
from every instance of your app on the whole system to only those that share the specified data directory.
204
+
205
+
Setting the custom `appIdentifier` can be used for even more granular control.
206
+
191
207
### 📌 Tray Position Detection
192
208
193
209
The `getTrayPosition()` function allows you to determine the current position of the system tray on the screen. This information can be useful for aligning application windows relative to the tray icon.
0 commit comments