Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
kardolus
GitHub Repository: kardolus/chatgpt-cli
Path: blob/main/vendor/github.com/inconshreveable/mousetrap/trap_others.go
2875 views
1
//go:build !windows
2
// +build !windows
3
4
package mousetrap
5
6
// StartedByExplorer returns true if the program was invoked by the user
7
// double-clicking on the executable from explorer.exe
8
//
9
// It is conservative and returns false if any of the internal calls fail.
10
// It does not guarantee that the program was run from a terminal. It only can tell you
11
// whether it was launched from explorer.exe
12
//
13
// On non-Windows platforms, it always returns false.
14
func StartedByExplorer() bool {
15
return false
16
}
17
18