From 8192500716e3d151c1fec3b523df447683fe9724 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 1 May 2015 21:38:39 +0200 Subject: path: add resolving desktop path to platform-specific paths win32 has a special function for this. I'm not sure about OSX - it seems ~/Desktop can be hardcoded, and the OSX GUI actually localizes the _displayed_ path in its UI. For Unix, there is not much to be done, or is there. --- osdep/path-unix.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'osdep/path-unix.c') diff --git a/osdep/path-unix.c b/osdep/path-unix.c index c3b70d7e06..cea4235c15 100644 --- a/osdep/path-unix.c +++ b/osdep/path-unix.c @@ -60,5 +60,7 @@ const char *mp_get_platform_path_unix(void *talloc_ctx, const char *type) return old_home; if (strcmp(type, "global") == 0) return MPV_CONFDIR; + if (strcmp(type, "desktop") == 0) + return getenv("HOME"); return NULL; } -- cgit v1.2.3