summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarius Vlad <marius.vlad@collabora.com>2020-09-18 20:38:07 +0300
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>2020-09-30 13:43:12 +0000
commit17d86f9b8afa69a8461456ac1a02515d20611f07 (patch)
tree37f4c2c894a439e64137b489d75d35fc67d23610
parent3ba840cd3a5a2fa1966b01ef286de0347e64aa46 (diff)
main: Enable screenshoter interface when debug option is passed
Bug-AGL: SPEC-3580 Signed-off-by: Marius Vlad <marius.vlad@collabora.com> Change-Id: I9adf8c707991301f5cf214b492ce3c6ee45997e2
-rw-r--r--src/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index d77cbc7..afe114b 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1501,7 +1501,8 @@ int main(int argc, char *argv[])
ivi_shell_create_global(&ivi);
ivi_launch_shell_client(&ivi);
- ivi_screenshooter_create(&ivi);
+ if (debug)
+ ivi_screenshooter_create(&ivi);
ivi_agl_systemd_notify(&ivi);
wl_display_run(display);