Instead of assuming the file prefix contains the path and filename
prefix, give these two items separately.
A NULL or empty string path may still be given to refer to the current
directory.
Signed-off-by: Aleksander Morgado
diff --git a/libweston/timeline.c b/libweston/timeline.c
index
If XDG_PICTURES_DIR not given, it will use the current directory, as
it was before.
Signed-off-by: Aleksander Morgado
diff --git a/clients/screenshot.c b/clients/screenshot.c
index be8d9fe6..78a5d424 100644
--- a/clients/screenshot.c
+++ b/clients/screenshot.c
@@ -217,7 +217,8 @@ write_png(int
Hey,
These patches try to improve a bit the behavior of the screenshooter,
by making it easier to take multiple screenshots and allowing to
store them in a location different than the current directory.
Comments?
Cheers!
Aleksander Morgado (3):
screenshot: save each new screenshot in a
Instead of overwriting the 'wayland-screenshot.png' file over and
over, store each requested screenshot in a filename based on timestamp
and sequence number.
Signed-off-by: Aleksander Morgado
diff --git a/clients/screenshot.c b/clients/screenshot.c
index 6e43d5ce..be8d9fe6 100644
---