desktop-link
Create shortcut files simply.
Usage
let link = targeting
.set_arguments
.set_name
.set_icon;
// Creates a link in the current user's application menu
link.save_to_menu;
// Creates a link in a specific location
link.save;
Supported platforms
| OS | Method | "Menu" saves to |
|---|---|---|
| Linux | .desktop files |
applications folder in XDG data directory |
| Windows | Native APIs to generate .lnk files |
"Programs" known folder |
| MacOS | Unsupported* | - |
*: MacOS has its own conventions that make this crate not applicable, there is no expectation of applications registering themselves accessible.