| Crates.io | desktop-link |
| lib.rs | desktop-link |
| version | 0.1.0 |
| created_at | 2025-05-03 04:41:38.65034+00 |
| updated_at | 2025-05-03 04:41:38.65034+00 |
| description | Create shortcut or link files |
| homepage | |
| repository | |
| max_upload_size | |
| id | 1658548 |
| size | 14,506 |
Create shortcut files simply.
let link = Link::targeting("/bin/sh")
.set_arguments("-c 'echo Hello World!'")
.set_name("Hello World")
.set_icon(path_to_icon);
// Creates a link in the current user's application menu
link.save_to_menu("helloworld");
// Creates a link in a specific location
link.save(some_path);
| 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.