[PATCH weston 2/3] file-util: allow specifying path separately in file_create_dated()

2018-01-22 Thread Aleksander Morgado
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

[PATCH weston 3/3] screenshot: save screenshot files in XDG_PICTURES_DIR

2018-01-22 Thread Aleksander Morgado
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

[PATCH weston 0/3] screenshooter improvements

2018-01-22 Thread Aleksander Morgado
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

[PATCH weston 1/3] screenshot: save each new screenshot in a different file

2018-01-22 Thread Aleksander Morgado
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 ---