-
-
Notifications
You must be signed in to change notification settings - Fork 620
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
$audaciuos_filename is always empty #1175
Comments
This issue is stale because it has been open 365 days with no activity. Remove stale label or comment, or this issue will be closed in 30 days. |
Seems to be fixed as of |
Nope, sorry, my mistake - also still present as of |
This issue is stale because it has been open 365 days with no activity. Remove stale label or comment, or this issue will be closed in 30 days. |
Still present in |
…_filename print_audacious_filename() always returns an empty (zero-length) $audacious_filename, due to one of the std::min() operators always being 0. Removing the std::min() construct fixes the problem. Fixes brndnmtthws#1175.
PR ✔️ done (finally!), see #2038. I hope I did everything right, feel free to correct/fix the PR in case I screwed up. 😇 😁 |
Issue
The
$audaciuos_filename
variable is always empty. Usingdbus-monitor
I found out thatconky
is actually receiving the correct answer from the dbus query vialibaudclient
, so after a bit of debugging I found out that the problem is inprint_audacious_filename()
. Fromsrc/audaciuos.cc
:At least on my system,
obj->data.i
is always0
, so the wholestd::min((unsigned int)obj->data.i, p_max_size)
construct also evaluates to0
, resulting in an empy (ie. 0 characters long) string. Replacing the wholestd::min()
construct with simplyp_max_size
(as inprint_audacious_status()
) fixes the problem.Information
conky-1.12.2
,audaciuos-4.1
,libaudclient-3.5-rc2
,gcc-/g++-9.2.0
onSlackware-14.2
(32bit).The text was updated successfully, but these errors were encountered: