mirror of
https://github.com/owntone/owntone-server.git
synced 2025-03-31 01:33:44 -04:00
Set cwd to appdir, so relative logfiles work.
This commit is contained in:
parent
9e648abd61
commit
b925279bb2
@ -32,6 +32,7 @@ Application::Application()
|
|||||||
: m_dlg(NULL), m_server_events(&m_icon)
|
: m_dlg(NULL), m_server_events(&m_icon)
|
||||||
{
|
{
|
||||||
CDosPath path = CDosPath::AppPath();
|
CDosPath path = CDosPath::AppPath();
|
||||||
|
SetCurrentDirectory(path.GetPath());
|
||||||
CDosPath filename(_T("mt-daapd.conf"));
|
CDosPath filename(_T("mt-daapd.conf"));
|
||||||
filename |= path;
|
filename |= path;
|
||||||
m_config_path = filename.GetPath();
|
m_config_path = filename.GetPath();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user