Skip to content

Latest commit

 

History

History
13 lines (8 loc) · 829 Bytes

DEVELOPMENT.md

File metadata and controls

13 lines (8 loc) · 829 Bytes

Developing on shutter

Debugging tips and tricks

Getting libcamera logs

libcamera relies on 2 environment variables to decide what to log, and where: LIBCAMERA_LOG_LEVELS and LIBCAMERA_LOG_FILE (see here). Passing values for these in the app's execution environment will let you control the looging. The easiest way to do it is to modify the desktop file. For SailfishOS, that is harbour-shutter.desktop, for Ubuntu Touch click/harbour-shutter-ui.desktop

The following works on Ubuntu Touch ONLY, and will prevent the app from launching on Sailfish.

Change the Exec=harbour-shutter line to Exec=env LIBCAMERA_LOG_LEVELS='*:DEBUG' env LIBCAMERA_LOG_FILE="/tmp/libcamera.log" harbour-shutter.