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-macosx.m | 2 ++ 1 file changed, 2 insertions(+) (limited to 'osdep/path-macosx.m') diff --git a/osdep/path-macosx.m b/osdep/path-macosx.m index 618f2038c8..52e2a2c771 100644 --- a/osdep/path-macosx.m +++ b/osdep/path-macosx.m @@ -28,5 +28,7 @@ const char *mp_get_platform_path_osx(void *talloc_ctx, const char *type) [pool release]; return res; } + if (strcmp(type, "desktop") == 0) + return mp_path_join(talloc_ctx, bstr0(getenv("HOME")), bstr0("Desktop")); return NULL; } -- cgit v1.2.3