Crate appfinder

Crate appfinder 

Source
Expand description

ยง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

thingWindowsMacosLinux
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

Functionsยง

get_app_path
remove_arguments