chore(qt): ship the binary as qbz, and log the first MPRIS metadata push
The artifact is now `target/<profile>/qbz` (owner, 2026-08-04). The package stays `qbz-qt`, so `cargo build -p qbz-qt` is unchanged. ⚠ `crates/qbz` — the Slint binary — declares the SAME bin name and shares this workspace's target dir, so both write `target/<profile>/qbz` and the last build wins. Survivable only because the Slint binary is never built in this worktree (the qbz-ui 20-30 GB wall); if it ever is, a smoke against "the wrong qbz" is silent. Written into Cargo.toml beside the name. The MPRIS line exists because "Plasma sees nothing" has two very different causes — the player never registered, or it registered and no metadata was ever pushed — and the log could not tell them apart. It settled that question the same day: the owner's log shows `[mpris] metadata pushed: Holy Diver — Dio (350s)`, so the port's half works and what remains is desktop-side. cc
This commit is contained in:
4 files changed
+25
-3
No files matched your search
@@ -6,7 +6,17 @@ edition.workspace = true
|
||||
license.workspace = true
|
||||
|
||||
[[bin]]
|
||||
name = "qbz-qt"
|
||||
# The SHIPPED name is `qbz` (owner, 2026-08-04). The package stays
|
||||
# `qbz-qt`, so `cargo build -p qbz-qt` is unchanged; only the artifact
|
||||
# moves to target/<profile>/qbz.
|
||||
#
|
||||
# ⚠ `crates/qbz` (the Slint binary) declares the SAME bin name and
|
||||
# shares this workspace's target dir, so both write
|
||||
# target/<profile>/qbz and the last build wins. That is survivable only
|
||||
# because the Slint binary is never built in this worktree (the qbz-ui
|
||||
# 20-30 GB wall). If it ever is, whoever built last owns the file — and
|
||||
# a smoke against "the wrong qbz" is silent.
|
||||
name = "qbz"
|
||||
path = "src/main.rs"
|
||||
|
||||
[dependencies]
|
||||
|
||||
@@ -141,6 +141,18 @@ pub(crate) fn push_now_playing(track: &qbz_models::QueueTrack, title: &str, albu
|
||||
// for local/plex (`qbz-media-controls/src/types.rs:30-36`).
|
||||
url: qbz_media_controls::xesam_url_for(track.source.as_deref(), track.id),
|
||||
});
|
||||
// One line per real track edge. It exists because "Plasma sees
|
||||
// nothing" has two very different causes — the player never
|
||||
// registered, or it registered and no metadata was ever pushed — and
|
||||
// without this the log cannot tell them apart. A desktop applet
|
||||
// generally hides a player that is Stopped with empty metadata, so
|
||||
// the FIRST push is the interesting event, not the hundredth.
|
||||
log::info!(
|
||||
"[mpris] metadata pushed: {} — {} ({}s)",
|
||||
title,
|
||||
track.artist,
|
||||
track.duration_secs
|
||||
);
|
||||
}
|
||||
mc.set_playback(
|
||||
qbz_media_controls::PlaybackStatus::Playing,
|
||||
|
||||
+1
-1
@@ -28,7 +28,7 @@ cd "$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/.."
|
||||
|
||||
UNAME_S="$(uname -s)"
|
||||
PROFILE=$([[ "${DEBUG:-0}" == 1 ]] && echo debug || echo release)
|
||||
BIN="crates/target/${PROFILE}/qbz-qt"
|
||||
BIN="crates/target/${PROFILE}/qbz"
|
||||
INTERVAL="${INTERVAL:-2}"
|
||||
|
||||
[[ -x "${BIN}" ]] || { echo "[qt-diag] no binary at ${BIN} — build first (./scripts/qt-run.sh NORUN=1)" >&2; exit 1; }
|
||||
|
||||
+1
-1
@@ -123,7 +123,7 @@ if [[ "${DEBUG:-0}" == 1 ]]; then
|
||||
else
|
||||
PROFILE=release; PROFILE_ARGS=(--release)
|
||||
fi
|
||||
BIN="crates/target/${PROFILE}/qbz-qt"
|
||||
BIN="crates/target/${PROFILE}/qbz"
|
||||
|
||||
# --- ONE BUILD AT A TIME, BOX-WIDE ------------------------------------------
|
||||
# Not paranoia: a Slint `qbz-ui` rustc in another worktree peaks 20-30 GB on a
|
||||
|
||||
Reference in new issue
Block a user