Verified Commit 08ac114c authored by Sumner Evans's avatar Sumner Evans 💬

Fix DBus name mismatch

Fixed issue where the Flatpak couldn't respond to media keys due to a DBusname mismatch.
parent 8c040723
Pipeline #196604418 failed with stages
in 2 minutes and 26 seconds
v0.11.10
========
* Added the ability to use Salt Authentication. Thanks to @acompagno for the
contribution!
* Fixed issue where the Flatpak couldn't respond to media keys due to a DBus
name mismatch.
v0.11.9
=======
......
......@@ -21,7 +21,7 @@
"--share=network",
"--socket=pulseaudio",
"--talk-name=org.freedesktop.Notifications",
"--own-name=org.mpris.MediaPlayer2.SublimeMusic",
"--own-name=org.mpris.MediaPlayer2.sublimemusic",
"--filesystem=xdg-config/sublime-music",
"--filesystem=xdg-cache/sublime-music",
"--filesystem=xdg-data/sublime-music",
......
......@@ -171,13 +171,13 @@ class SubsonicAdapter(Adapter):
"Double check the server address."
)
except ServerError as e:
if e.status_code in [10, 41] and config_store["salt_auth"]:
if e.status_code in (10, 41) and config_store["salt_auth"]:
# status code 10: if salt auth is not enabled, server will
# return error server error with status_code 10 since it'll
# interpret it as a missing (password) parameter
# return error server error with status_code 10 since it'll
# interpret it as a missing (password) parameter
# status code 41: as per subsonic api docs, description of
# status_code 41 is "Token authentication not supported for LDAP
# users." so fall back to password auth
# status_code 41 is "Token authentication not supported for
# LDAP users." so fall back to password auth
try:
config_store["salt_auth"] = False
tmp_adapter = SubsonicAdapter(
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment