Comments (7)
I've narrowed it down a bit: commit f4e248a.
If I remove the global config file /etc/mpdasrc
then it works again with the latest build from master. Anything up to that commit used to work even with the global config not removed from /etc
.
Seems like the "global" config file in /etc
has priority over the user config file in ~/.config/
. I guess a potential fix for this would be prioritizing the "user" config files and only then loading the file in /etc
.
from mpdas.
IIRC the global config is loaded first and then the user config, so any values set in the user config should overtop the global values.
from mpdas.
I think the problem is when some values aren't set (or are commented out) in the user config file, then the ones from the global config file are taken. One must explicitly set the values in the user config file.
One problem might be the mpdpassword
option. In my case, since I don't use it, mpdas failed to start, because it was set in the global config, but not in my user's config. I think that's why it wasn't able to connect.
from mpdas.
Which distribution is this? Does it install the example file in /etc
? Does setting it to "" (empty value) work?
from mpdas.
I am using Arch Linux, but packaged myself since it's not in the official repository.
I am using the latest build from master. It installs the sample config in /etc
.
Just tried setting it to "" in the config file in /etc
and it's not working; mpdas can't connect if I set host = ""
.
I guess a solution would be to make it disregard the config options from /etc
or ~/.mpdasrc
if the options from ~/.config/mpdasrc
are loaded.
from mpdas.
For host an empty value is invalid. The default value is localhost.
from mpdas.
Okay, I just set all the values explicitly in my user config file and it's working regardless of what's in the example/global config file.
My bad, I guess it's solved now.
from mpdas.
Related Issues (20)
- mpdas as daemon HOT 4
- implement a different authentication mechanism
- Authentication failed. Please check your login data. HOT 1
- [FEATURE REQUEST] Consider XDG config directory HOT 5
- mpdas 0.4.3 checksum mismatch HOT 2
- Password doesn't work. HOT 16
- libre.fm: Code 6 HOT 8
- Error code 13 HOT 4
- Unable to compile mpdas on OSMC HOT 3
- Scrobble works on 'Artist' and not on 'Album Artist'? HOT 13
- compiling mpdas in buildroot HOT 3
- Scrobble webradio songs
- Scrobbled tracks not saving HOT 11
- Add ListenBrainz.org scrobble support HOT 1
- Fails only when run by systemd HOT 1
- single mode not scrobbling HOT 1
- Add support for the `$MPD_HOST` environment variable
- libcurl: timeout was reached after a period of inactivity
- Authentication Error, Code: 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mpdas.