desktop-link 0.1.0

Create shortcut or link files
Documentation
  • Coverage
  • 53.85%
    7 out of 13 items documented0 out of 9 items with examples
  • Size
  • Source code size: 14.02 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.2 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 34s Average build duration of successful builds.
  • all releases: 34s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • kroltan

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.