summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-05-01 21:48:07 +0200
committerwm4 <wm4@nowhere>2015-05-01 21:51:10 +0200
commit756991bd4f78d3a241df1f4fa208d5f55ef95833 (patch)
tree18374ae38b5d52fbf8f8408b05dd551f1784450d
parent72373bb5aee6be468bf6a3a2cceb55e9f1a6d28f (diff)
downloadmpv-756991bd4f78d3a241df1f4fa208d5f55ef95833.tar.bz2
mpv-756991bd4f78d3a241df1f4fa208d5f55ef95833.tar.xz
screenshots: change default directory in pseudo-gui mode to desktop
This should take care of the endless complaints about the default location for screenshots (and will of course create new ones). If the screenshot-template is set to an absolute path, the directory won't be used. So this should be reasonably compatible.
-rw-r--r--DOCS/man/mpv.rst1
-rw-r--r--DOCS/man/options.rst3
-rw-r--r--player/main.c3
3 files changed, 5 insertions, 2 deletions
diff --git a/DOCS/man/mpv.rst b/DOCS/man/mpv.rst
index d7d50a4824..653c29d9ce 100644
--- a/DOCS/man/mpv.rst
+++ b/DOCS/man/mpv.rst
@@ -648,6 +648,7 @@ the ``pseudo-gui`` profile being predefined with the following contents:
terminal=no
force-window=yes
idle=once
+ screenshot-directory=~desktop/
This follows the mpv config file format. To customize pseudo-GUI mode, you can
put your own ``pseudo-gui`` profile into your ``mpv.conf``. This profile will
diff --git a/DOCS/man/options.rst b/DOCS/man/options.rst
index 356eff7822..884d6bf7eb 100644
--- a/DOCS/man/options.rst
+++ b/DOCS/man/options.rst
@@ -2665,7 +2665,8 @@ Screenshot
generated.
This option is not set by default, and thus will write screenshots to the
- directory from which mpv was started.
+ directory from which mpv was started. In pseudio-gui mode
+ (see `PSEUDO GUI MODE`_), this is set to the desktop.
``--screenshot-jpeg-quality=<0-100>``
Set the JPEG quality level. Higher means better quality. The default is 90.
diff --git a/player/main.c b/player/main.c
index 1d56f0ceda..641be7a289 100644
--- a/player/main.c
+++ b/player/main.c
@@ -102,7 +102,8 @@ static const char def_config[] =
"[pseudo-gui]\n"
"terminal=no\n"
"force-window=yes\n"
- "idle=once\n";
+ "idle=once\n"
+ "screenshot-directory=~desktop/\n";
static pthread_mutex_t terminal_owner_lock = PTHREAD_MUTEX_INITIALIZER;
static struct MPContext *terminal_owner;