5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-04 05:50:54 +08:00
wails/v3/plugins/experimental/single_instance
Lea Anthony 4386f5fcb2
# Conflicts:
#	mkdocs-website/docs/en/changelog.md
2024-09-18 05:55:49 +10:00
..
go-singleinstance.LICENSE Major plugin updates 2024-04-14 21:41:33 +10:00
lock_posix.go Major plugin updates 2024-04-14 21:41:33 +10:00
lock_windows.go Major plugin updates 2024-04-14 21:41:33 +10:00
lock.go Major plugin updates 2024-04-14 21:41:33 +10:00
plugin_darwin.go Major plugin updates 2024-04-14 21:41:33 +10:00
plugin_linux.go Major plugin updates 2024-04-14 21:41:33 +10:00
plugin_windows.go Major plugin updates 2024-04-14 21:41:33 +10:00
plugin.go # Conflicts: 2024-09-18 05:55:49 +10:00
plugin.yaml Major plugin updates 2024-04-14 21:41:33 +10:00
README.md Major plugin updates 2024-04-14 21:41:33 +10:00

single-instance Plugin

This plugin provides a way to prevent multiple launches of your application.

Installation

Add the plugin to the Plugins option in the Applications options:

    Plugins: map[string]application.Plugin{
        "single_instance": single_instance.NewPlugin(&single_instance.Config{
            // When true, the original app will be activated when a second instance is launched
            ActivateAppOnSubsequentLaunch: true,
        }
    },

Usage

This plugin prevents the launch of multiple copies of your application. If you set ActivateAppOnSubsequentLaunch to true the original app will be activated when a second instance is launched.

Support

If you find a bug in this plugin, please raise a ticket here. Please do not contact the Wails team for support.

Credit

This plugin contains modified code from the awesome go-singleinstance module (c) 2015 Allan Simon. Original license file has been renamed go-singleinstance.LICENSE and is available here.