| Matthias Andreas Benkard | 832a54e | 2019-01-29 09:27:38 +0100 | [diff] [blame^] | 1 | // +build !windows | 
|  | 2 |  | 
|  | 3 | package mousetrap | 
|  | 4 |  | 
|  | 5 | // StartedByExplorer returns true if the program was invoked by the user | 
|  | 6 | // double-clicking on the executable from explorer.exe | 
|  | 7 | // | 
|  | 8 | // It is conservative and returns false if any of the internal calls fail. | 
|  | 9 | // It does not guarantee that the program was run from a terminal. It only can tell you | 
|  | 10 | // whether it was launched from explorer.exe | 
|  | 11 | // | 
|  | 12 | // On non-Windows platforms, it always returns false. | 
|  | 13 | func StartedByExplorer() bool { | 
|  | 14 | return false | 
|  | 15 | } |