Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
9fc00a81
Commit
9fc00a81
authored
Oct 31, 2018
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Listen: use fs/XDG.hxx
This keeps one central place for the XDG switch. Specifically, this disables the XDG listener on Apple, where XDG is not supported.
parent
f47696f5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
Listen.cxx
src/Listen.cxx
+5
-4
No files found.
src/Listen.cxx
View file @
9fc00a81
...
...
@@ -31,6 +31,7 @@
#include "system/Error.hxx"
#include "util/RuntimeError.hxx"
#include "fs/AllocatedPath.hxx"
#include "fs/XDG.hxx"
#include <sys/stat.h>
#include <string.h>
...
...
@@ -73,10 +74,7 @@ listen_systemd_activation(ClientListener &listener)
static
bool
ListenXdgRuntimeDir
(
ClientListener
&
listener
)
noexcept
{
#if defined(_WIN32) || defined(ANDROID) || !defined(HAVE_UN)
(
void
)
listener
;
return
false
;
#else
#if defined(USE_XDG) && defined(HAVE_UN)
if
(
geteuid
()
==
0
)
/* this MPD instance is a system-wide daemon; don't
use $XDG_RUNTIME_DIR */
...
...
@@ -107,6 +105,9 @@ ListenXdgRuntimeDir(ClientListener &listener) noexcept
socket_path
.
c_str
());
return
false
;
}
#else
(
void
)
listener
;
return
false
;
#endif
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment