Search for .desktop files in XDG_DATA_DIRS
Find a file
Grimmauld 2ab7770181
CLEANUP
- dropped cursed rust devshell in favour of rust overlay
- dropped cargo hash in favour of lock file reference (doesn't break anymore :)
- add formatter to flake outputs
- nix fmt (rfc style)
- nix flake update
- cargo fmt
- cargo update
2024-11-29 19:12:09 +01:00
nix CLEANUP 2024-11-29 19:12:09 +01:00
src CLEANUP 2024-11-29 19:12:09 +01:00
.gitignore update gitignore 2024-05-19 13:23:02 +02:00
Cargo.lock CLEANUP 2024-11-29 19:12:09 +01:00
Cargo.toml add --by-exec cli flag 2024-06-03 21:04:47 +02:00
flake.lock CLEANUP 2024-11-29 19:12:09 +01:00
flake.nix CLEANUP 2024-11-29 19:12:09 +01:00
LICENSE Add LICENSE 2024-04-19 23:16:56 +02:00
Readme.md Add readme 2024-04-19 23:13:43 +02:00
rust-toolchain.toml nix tooling, cleanup 2024-05-19 13:23:02 +02:00

deskwhich

Search for .desktop files in XDG_DATA_DIRS

Usage

desktopwhich [OPTIONS] <SEARCH>

Arguments:
  <SEARCH>  The desktop file to search for

Options:
      --skip-dot    Skip directories in XDG_DATA_DIRS that start with a dot
      --skip-home   Skip directories in XDG_DATA_DIRS that start with the home directory
  -a, --all         Print all matches in XDG_DATA_DIRS, not just the first
      --show-tilde  Output a tilde for HOME directory
  -h, --help        Print help
  -V, --version     Print version

Building

git clone https://codeberg.org/axtlos/desktopwhich.git
cd desktopwhich
cargo build --release

The executable will be placed in ./target/release, it can be copied to any directory in PATH.