desktop-link

Crates.iodesktop-link
lib.rsdesktop-link
version0.1.0
created_at2025-05-03 04:41:38.65034+00
updated_at2025-05-03 04:41:38.65034+00
descriptionCreate shortcut or link files
homepage
repository
max_upload_size
id1658548
size14,506
Leonardo Giovanni Scur (kroltan)

documentation

README

desktop-link

Create shortcut files simply.

Usage

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);

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.

Commit count: 0

cargo fmt