appfinder

Crates.ioappfinder
lib.rsappfinder
version0.1.2
sourcesrc
created_at2023-01-19 17:36:09.070516
updated_at2023-01-29 13:12:15.462738
descriptionFind the location to applications on Linux, Windows and MacOS
homepage
repository
max_upload_size
id762718
size20,909
Tricked (Tricked-dev)

documentation

README

Appfinder

find the location of applications on the system.

Resolves multiple folders on windows to find binaries on

Usage

use appfinder::get_app_path;
fn main() {
    let path = get_app_path("firefox");
    println!("Firefox is located at: {:?}", path);
}
use appfinder::get_app_path;
fn main() {
    let path = get_app_path("discord");
    println!("Discord is located at: {:?}", path);

}

Os support

thing Windows Macos Linux
path 🚫 ✅ ✅
desktop files 🚫 🚫 ✅
start menu ✅ 🚫 🚫
appdata ✅ 🚫 🚫

Caveats

  • on linux desktopfiles return the full commands even arguments these can be manually removed
  • the name of the application you want to find must be lowercase
Commit count: 0

cargo fmt