Single instance support
This module is only available from the UI process Lua state.
This module allows Lua code to detect an already-running instance of luakit and open requested links on that instance, instead of opening two separate and independent instances.
Set up an application with a shared identifier used to locate
already-running instances. This must be called before calling
idType: stringThe application identifier string to use.
Check whether an application using the identifier previously given to
unique.new is already running.
trueif an application instance is already running.
Send a message (which must be a string) to the primary instance of the application.
messageType: stringThe message to send to the primary instance.
Emitted only on the primary instance when a message is received from a secondary instance.
messageType: stringThe message sent with
screenType: screenAn opaque piece of data that represents the screen of the currently focused window of the main instance.
- 2011 Mason Larobina