mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2024-11-01 15:00:00 +00:00
014d7ac131
Bumps [github.com/spf13/cobra](https://github.com/spf13/cobra) from 1.6.1 to 1.7.0. - [Release notes](https://github.com/spf13/cobra/releases) - [Commits](https://github.com/spf13/cobra/compare/v1.6.1...v1.7.0) --- updated-dependencies: - dependency-name: github.com/spf13/cobra dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
17 lines
503 B
Go
17 lines
503 B
Go
//go:build !windows
|
|
// +build !windows
|
|
|
|
package mousetrap
|
|
|
|
// StartedByExplorer returns true if the program was invoked by the user
|
|
// double-clicking on the executable from explorer.exe
|
|
//
|
|
// It is conservative and returns false if any of the internal calls fail.
|
|
// It does not guarantee that the program was run from a terminal. It only can tell you
|
|
// whether it was launched from explorer.exe
|
|
//
|
|
// On non-Windows platforms, it always returns false.
|
|
func StartedByExplorer() bool {
|
|
return false
|
|
}
|