#windows #binaryfinder #find-application #locate-executable

appfinder

Find the location to applications on Linux, Windows and MacOS

3 releases

0.1.2 Jan 29, 2023
0.1.1 Jan 19, 2023
0.1.0 Jan 19, 2023

#354 in #windows

25 downloads per month

MIT/Apache

9KB
164 lines

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

Dependencies

~0–2MB
~15K SLoC