| Crates.io | some_default_dirs |
| lib.rs | some_default_dirs |
| version | 0.1.1 |
| created_at | 2025-10-15 20:26:40.076467+00 |
| updated_at | 2025-11-04 21:40:40.88398+00 |
| description | Some Default paths which are not in dirs next |
| homepage | |
| repository | https://github.com/shadowdara/some_default_dirs |
| max_upload_size | |
| id | 1884913 |
| size | 14,877 |
A small Rust crate that returns the path to the Start Menu Programs folder on Windows.
| 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 |
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 !