mirror of
https://github.com/librespot-org/librespot.git
synced 2026-04-27 00:05:55 +03:00
[GH-ISSUE #1568] CLIENT_NAME field empty in session_client_changed event #711
Labels
No labels
A-Alsa
SpotifyAPI
Tokio 1.0
audio
bug
can't reproduce
compilation
dependencies
duplicate
enhancement
good first issue
help wanted
high priority
imported
imported
invalid
new api
pull-request
question
reverse engineering
wiki
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/librespot#711
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @varungujjar on GitHub (Sep 5, 2025).
Original GitHub issue: https://github.com/librespot-org/librespot/issues/1568
Description
I just compiled with the following features
cargo build --target aarch64-unknown-linux-gnu --features "native-tls alsa-backend gstreamer-backend with-avahi"
Everything works perfectly fine except I do not receive CLIENT_NAME anymore its an empty string ''
heres the output :
Version
0.7.1
How to reproduce
Compile :
cargo build --target aarch64-unknown-linux-gnu --features "native-tls alsa-backend gstreamer-backend with-avahi"
Launch
librespotwith --bitrate 320 --format S16 --name raspberrypi --cache /tmp/spotify_cache --disable-audio-cache --backend alsa --onevent on_event_path --initial-volume 100 --device-type avr --device plughw:Loopback,0,0Connect with 'Spotify Desktop / Mobile App'
CLIENT_NAME is empty string '' when receiving events from the event handler
Tried compiling with different options but no luck :( maybe some one can help ?
Log
*{'CLIENT_BRAND_NAME': '', 'CLIENT_ID': 'XXXX', 'CLIENT_MODEL_NAME': '', 'CLIENT_NAME': '', 'DBUS_SESSION_BUS_ADDRESS': 'unix:path=/run/user/1000/bus', 'HOME': '/home/pi', 'LADSPA_PATH': '/usr/lib/ladspa', 'LANG': 'en_GB.UTF-8', 'LC_CTYPE': 'C.UTF-8', 'LOGNAME': 'pi', 'MOTD_SHOWN': 'pam', 'OLDPWD': '/home/pi/builds/librespot', 'PATH': '/home/pi/env/bin:/home/pi/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games', 'PLAYER_EVENT': 'session_client_changed', 'PS1': '(env) ${debian_chroot:+($debian_chroot)}\u@\h:\w\$ ', 'PWD': '/home/pi/builds/librespot/target/aarch64-unknown-linux-gnu/debug', 'RUST_BACKTRACE': 'full', 'SHELL': '/bin/bash', 'SHLVL': '1', 'SSH_CLIENT': '192.168.1.105 57584 22', 'SSH_CONNECTION': 'XXXX', 'SSH_TTY': '/dev/pts/0', 'TERM': 'xterm-256color', 'TEXTDOMAIN': 'Linux-PAM', 'USER': 'pi', 'VIRTUAL_ENV': '/home/pi/env', 'VIRTUAL_ENV_PROMPT': '(env) ', 'XDG_RUNTIME_DIR': '/run/user/1000', 'XDG_SESSION_CLASS': 'user', 'XDG_SESSION_ID': '2', 'XDG_SESSION_TYPE': 'tty', '_': '/home/pi/env/bin/XXXX'}}
Host (what you are running
librespoton):@kingosticks commented on GitHub (Sep 5, 2025):
Are you talking about the CLIENT_NAME field in the event handler? This report is really unclear.
@varungujjar commented on GitHub (Sep 5, 2025):
Yea, sorry my bad I just corrected it :)
@photovoltex commented on GitHub (Sep 10, 2025):
Do you have an example of what was previously given out?
@varungujjar commented on GitHub (Nov 7, 2025):
previously it would be 'CLIENT_NAME': 'XXX MacBook Pro' or 'XXX iphone' may be I am compiling it wrong ?
@photovoltex commented on GitHub (Nov 7, 2025):
No no, I'm pretty sure that is something that was accidentally dropped during the refactor on the connect front. Could you explain what the redacted part was? If we know what to emit, we can probably fix it pretty easily.
@varungujjar commented on GitHub (Nov 7, 2025):
I am not quite sure about the redacted part, but with the librespot 0.6 i get the following information which seems to be missing when i use 0.7+
{'CLIENT_BRAND_NAME': 'apple', 'CLIENT_ID': '65b708073fc0480ea92a077233ca87bd', 'CLIENT_MODEL_NAME': 'MacBookPro14,2', 'CLIENT_NAME': 'Varun’s MacBook Pro', 'DBUS_SESSION_BUS_ADDRESS': 'unix:path=/run/user/1000/bus', 'HOME': '/home/pi', 'LADSPA_PATH': '/usr/lib/ladspa', 'LANG': 'en_GB.UTF-8', 'LC_CTYPE': 'C.UTF-8', 'LOGNAME': 'pi', 'MOTD_SHOWN': 'pam', 'OLDPWD': '/home/pi/builds/librespot', 'PATH': '/home/pi/env/bin:/home/pi/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games', 'PLAYER_EVENT': 'session_client_changed', 'PS1': '(env) ${debian_chroot:+($debian_chroot)}\u@\h:\w\$ ', 'PWD': '/home/pi/builds/librespot/target/aarch64-unknown-linux-gnu/debug', 'RUST_BACKTRACE': 'full', 'SHELL': '/bin/bash', 'SHLVL': '1', 'SSH_CLIENT': '192.168.X.XXX XXXXX XX', 'SSH_CONNECTION': 'XXXX', 'SSH_TTY': '/dev/pts/0', 'TERM': 'xterm-256color', 'TEXTDOMAIN': 'Linux-PAM', 'USER': 'pi', 'VIRTUAL_ENV': '/home/pi/env', 'VIRTUAL_ENV_PROMPT': '(env) ', 'XDG_RUNTIME_DIR': '/run/user/1000', 'XDG_SESSION_CLASS': 'user', 'XDG_SESSION_ID': '2', 'XDG_SESSION_TYPE': 'tty', '_': '/home/pi/env/bin/XXXX'}}