some_default_dirs 0.1.1

Some Default paths which are not in dirs next
Documentation
  • Coverage
  • 66.67%
    2 out of 3 items documented0 out of 2 items with examples
  • Size
  • Source code size: 14.87 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 260.93 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 18s Average build duration of successful builds.
  • all releases: 22s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • ShadowDara/some_default_dirs
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • ShadowDara

some_default_dirs

A small Rust crate that returns the path to the Start Menu Programs folder on Windows.

Platform support

function Windows macOS Linux
startmenu_dir() %APPDATA%\Microsoft\Windows\Start Menu\Programs /Applications/ /usr/share/applications/
local_startmenu_dir() %APPDATA%\Microsoft\Windows\Start Menu\Programs $HOME/Applications $HOME/.local/share/applications

Verwendung

use some_default_dirs::startmenu_dir;

fn main() {
    match startmenu_path::startmenu_dir() {
        Some(path) => println!("Startmenu Folder: {}", path.display()),
        None => println!("Function is not supported on this OS."),
    }
}

Contributing is welcomed !