Documentation
¶
Overview ¶
Package desktopapp installs the clickable launcher that puts lerd in the platform's application list, so bringing the environment up and opening the dashboard needs no terminal.
Index ¶
Constants ¶
const Name = "Lerd"
Name is the launcher's user-facing name.
Variables ¶
This section is empty.
Functions ¶
func Install ¶
Install writes the desktop entry and its icon, and returns the entry's path. Rewritten on every run so an upgraded lerd repoints it at the binary that is live now.
The entry runs `lerd dashboard --splash`, which is the same command the tray and the CLI use: it starts the environment when it is down, opens the desktop app when that is installed and the browser otherwise. --splash is what makes it usable from an icon, where there is no terminal to show progress in.
func LauncherName ¶
func LauncherName() string
LauncherName is what the Linux desktop entry is called. On its own it is "Lerd", the same as everywhere else. The lerd-desktop app ships an entry under that name too, and shadowing that one is not an option: it carries the x-scheme-handler/lerd association, and taking it over would point lerd:// back at this launcher, which opens the app through lerd://. So where both are installed the two sit side by side and this one says what it adds.
func Remove ¶
func Remove() error
Remove deletes the desktop entry and its icon. Missing is success.
Only the icon file: it sits directly in lerd's data directory, so removing its parent takes the whole of ~/.local/share/lerd with it, which an uninstall that was told to keep the data has no business doing.
Types ¶
This section is empty.