diff options
author | wm4 <wm4@nowhere> | 2015-05-01 21:38:39 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-05-01 21:51:10 +0200 |
commit | 8192500716e3d151c1fec3b523df447683fe9724 (patch) | |
tree | 66eb6d91e8797460d7850e90f439667aaa63ef01 /osdep/path-unix.c | |
parent | 7381db60e28dbedfb9215ca5a4c69aad78b713a4 (diff) | |
download | mpv-8192500716e3d151c1fec3b523df447683fe9724.tar.bz2 mpv-8192500716e3d151c1fec3b523df447683fe9724.tar.xz |
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.
Diffstat (limited to 'osdep/path-unix.c')
-rw-r--r-- | osdep/path-unix.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; } |