Browse Source

Bump version to 0.4.0

Breaking changes: `query_default_app()` now returns the 'Exec=' value of
the desktop file instead of just the binary name.
master
Manos Pitsidianakis 5 months ago
parent
commit
1be8bf0011
Signed by: epilys GPG Key ID: 73627C2F690DF710
3 changed files with 3 additions and 3 deletions
  1. +1
    -1
      Cargo.toml
  2. +1
    -1
      README.md
  3. +1
    -1
      src/lib.rs

+ 1
- 1
Cargo.toml View File

@ -1,6 +1,6 @@
[package]
name = "xdg-utils"
version = "0.3.2"
version = "0.4.0"
authors = ["Manos Pitsidianakis <el13635@mail.ntua.gr>"]
description = "Query system for default apps using XDG MIME databases. Rust implementations of some common functions in the freedesktop project `xdg-utils`."
repository = "https://github.com/meli/xdg-utils"

+ 1
- 1
README.md View File

@ -8,7 +8,7 @@ The xdg-utils library provides dependency-free (except for `std`) Rust implement
## What is implemented?
* Function `query_default_app` performs like the xdg-utils function `binary_to_desktop_file`
* Function `query_default_app` performs like the xdg-utils function `binary_to_desktop_file` but returns the command string to be executed instead of the path of the desktop file.
* Function `query_mime_info` launches the `mimetype` or else the `file` command.
Some of the utils may be implemented by combining these functions with other functions in the Rust standard library.

+ 1
- 1
src/lib.rs View File

@ -130,7 +130,7 @@ impl Ini {
}
}
/// Returns the path of a binary that is the default application of given MIME type `query`
/// Returns the command string of the desktop file that is the default application of given MIME type `query`
///
/// # Example
/// ```no_run

Loading…
Cancel
Save