Desktop.Env (Desktop v1.3.4) View Source

Env holds any needed :wx / Desktop application state. Currently it keeps track of

* The open Dekstop.Window(s),
* OS Application events (such as when a file is dragged on the application icon)
* The :wx environment
* The dbus connection (sni) on linux

Also it has a global connect() method to allow binding of :wx event callbacks using this long lived process as reference.

Link to this section Summary

Link to this section Functions

Returns a specification to start this module under a supervisor.

See Supervisor.

Link to this function

connect(object, command, callback, id \\ nil)

View Source
Link to this function

get(key, default \\ nil)

View Source
Link to this function

pop(key, default \\ nil)

View Source

Wrapper around wx.subscribe()

Will send to the calling process events in the form:

  • {:print_file, [filename]}
  • {:open_file, [filename]}
  • {:open_url, [filename]}
  • {:new_file, []}