http urls monitor.

trap_others.go 483B

12345678910111213141516
  1. // +build !windows
  2. package mousetrap
  3. // StartedByExplorer returns true if the program was invoked by the user
  4. // double-clicking on the executable from explorer.exe
  5. //
  6. // It is conservative and returns false if any of the internal calls fail.
  7. // It does not guarantee that the program was run from a terminal. It only can tell you
  8. // whether it was launched from explorer.exe
  9. //
  10. // On non-Windows platforms, it always returns false.
  11. func StartedByExplorer() bool {
  12. return false
  13. }