mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-06 02:17:59 +02:00
clients/screenshot: Allow weston-screenshooter to be called directly
As is stands now, libexec/weston-screenshooter can only be called from within weston server. This will allow weston-screenshooter to be called on the command line. The final scope here is to allow taking screenshots without the need of a keyboard. Signed-off-by: Marius Vlad <marius.vlad0@gmail.com>
This commit is contained in:
parent
3c7cfbbf62
commit
f7843a50ab
1 changed files with 0 additions and 7 deletions
|
|
@ -284,13 +284,6 @@ int main(int argc, char *argv[])
|
|||
struct buffer_size buff_size = {};
|
||||
struct screenshooter_data sh_data = {};
|
||||
|
||||
if (getenv("WAYLAND_SOCKET") == NULL) {
|
||||
fprintf(stderr, "%s must be launched by weston.\n"
|
||||
"Use the MOD+S shortcut to take a screenshot.\n",
|
||||
program_invocation_short_name);
|
||||
return -1;
|
||||
}
|
||||
|
||||
display = wl_display_connect(NULL);
|
||||
if (display == NULL) {
|
||||
fprintf(stderr, "failed to create display: %m\n");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue