Compare commits
4 commits
Author | SHA1 | Date | |
---|---|---|---|
Stephen Seo | 675df211cd | ||
Stephen Seo | c782a3048d | ||
Stephen Seo | 27c3d8c5cd | ||
Stephen Seo | cd4d4f60e4 |
2
Cargo.lock
generated
2
Cargo.lock
generated
|
@ -1668,7 +1668,7 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "mpd_info_screen"
|
||||
version = "0.3.7"
|
||||
version = "0.4.3"
|
||||
dependencies = [
|
||||
"bindgen",
|
||||
"freetype",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "mpd_info_screen"
|
||||
version = "0.3.7"
|
||||
version = "0.4.3"
|
||||
edition = "2018"
|
||||
description = "Displays info on currently playing music from an MPD daemon"
|
||||
license = "MIT"
|
||||
|
|
28
README.md
28
README.md
|
@ -12,6 +12,26 @@ A Rust program that displays info about the currently running MPD server.
|
|||
The window shows albumart (may be embedded in the audio file, or is a "cover.jpg" in the same directory as the song file), a "time-remaining"
|
||||
counter, and the filename currently being played
|
||||
|
||||
## Known Bugs ❗❗
|
||||
|
||||
Version `0.4.3` is a "workaround" release that is branched off of version
|
||||
`0.3.7`. Once a new release of `ggez` is released that fixes the known bugs,
|
||||
a new version will be released with the fixes. Because this is based on
|
||||
`0.3.7` of `mpd_info_screen`, Wayland support may not work. Try using `xwayland`
|
||||
with the environment variable `WINIT_UNIX_BACKEND=x11` set. A future release
|
||||
using the latest version of `ggez` should work with Wayland.
|
||||
|
||||
Currently, the dependency "ggez 0.8.1" [fails to render album
|
||||
art](https://github.com/Stephen-Seo/mpd_info_screen/issues/1) on my machines
|
||||
using the latest version of this program (`main` branch). Version 0.4.1 cannot
|
||||
be published to https://crates.io due to this version referring to a git commit
|
||||
as a dependency. Once ggez has released a new version with the commit that
|
||||
fixes this bug, this repository will be updated to use that version.
|
||||
|
||||
The `devel` branch has a fix for mpd\_info\_screen not displaying properly when
|
||||
no password is provided and MPD can be accessed without a password. This fix
|
||||
has been backported for version `0.4.3`.
|
||||
|
||||
## Unicode Support
|
||||
|
||||
By default, unicode characters will not display properly. Build the project with
|
||||
|
@ -23,10 +43,14 @@ installed already).
|
|||
|
||||
cargo build --release --features unicode_support
|
||||
|
||||
or through crates.io:
|
||||
|
||||
cargo install --features unicode_support mpd_info_screen
|
||||
|
||||
# Usage
|
||||
|
||||
|
||||
mpd_info_screen 0.3.7
|
||||
mpd_info_screen 0.4.3
|
||||
|
||||
USAGE:
|
||||
mpd_info_screen [FLAGS] [OPTIONS] <host> [port]
|
||||
|
@ -47,7 +71,7 @@ installed already).
|
|||
-t, --text-bg-opacity <text-bg-opacity> sets the opacity of the text background (0-255) [default: 190]
|
||||
|
||||
ARGS:
|
||||
<host>
|
||||
<host>
|
||||
<port> [default: 6600]
|
||||
|
||||
|
||||
|
|
|
@ -263,10 +263,10 @@ impl MPDHandler {
|
|||
current_binary_size: 0,
|
||||
poll_state: PollState::None,
|
||||
stream,
|
||||
password,
|
||||
password: password.clone(),
|
||||
error_text: String::new(),
|
||||
can_authenticate: true,
|
||||
is_authenticated: false,
|
||||
is_authenticated: password.is_empty(),
|
||||
can_get_album_art: true,
|
||||
can_get_album_art_in_dir: true,
|
||||
can_get_status: true,
|
||||
|
|
Loading…
Reference in a new issue