1
0
Fork 0
mirror of https://github.com/polybar/polybar.git synced 2024-11-11 13:50:56 -05:00

Respect MPD_HOST env variable

Fixes #1007
This commit is contained in:
patrick96 2018-02-14 10:46:56 +01:00 committed by NBonaparte
parent 295297500d
commit 078bcd5e7d

View file

@ -2,6 +2,7 @@
#include <chrono> #include <chrono>
#include "utils/env.hpp"
#include "adapters/mpd.hpp" #include "adapters/mpd.hpp"
#include "modules/meta/event_module.hpp" #include "modules/meta/event_module.hpp"
#include "modules/meta/input_handler.hpp" #include "modules/meta/input_handler.hpp"
@ -72,7 +73,7 @@ namespace modules {
*/ */
unique_ptr<mpdstatus> m_status; unique_ptr<mpdstatus> m_status;
string m_host{"127.0.0.1"}; string m_host{env_util::get("MPD_HOST", "127.0.0.1")};
string m_pass; string m_pass;
unsigned int m_port{6600U}; unsigned int m_port{6600U};