Documentation
¶
Overview ¶
Package shortcut puts magpie in the Start menu on Windows. There it is one portable exe with no installer, so nothing else would: each start of the desktop app points a Magpie shortcut in the user's Start menu at the exe it runs as, and Windows search finds it by that. Elsewhere it does nothing — the Mac has the app in Applications, Linux its own ways.
Index ¶
Constants ¶
const Name = "Magpie"
Name is what the shortcut is called, and what Windows search finds.
Variables ¶
This section is empty.
Functions ¶
func Ensure ¶
func Ensure()
Ensure has the shortcut point at this magpie, when it doesn't yet. It fails quietly — magpie runs the same without one — and is skipped with MAGPIE_NO_SHORTCUT=1 (tests, sandboxes).
func Stale ¶
Stale reports whether a shortcut opening target in dir is not one for exe: there is none yet, or the exe was moved. Windows paths are the same in any case.
Types ¶
This section is empty.