Skip to content

Double quotes in default go2rtc config paths #327

@dpw13

Description

@dpw13

I installed lightNVR by building from source on a fresh Debian 13 VM and had some trouble getting go2rtc working as expected. It took a lot of debugging but I found that the binary path and config directories for go2rtc were enclosed in double quotes. This was particularly confusing because the logs actually printed out that it couldn't create "/etc/lightnvr/go2rtc" (sic) and I didn't catch the issue for some time. Removing the quotes fixed the issue.

I'm not sure what actually caused the double quotes to show up, but I do see this in build/Release/CMakeFiles/lightnvr.dir/flags.make:

C_DEFINES = -DENABLE_MQTT=1 -DGO2RTC_API_PORT=1984 -DGO2RTC_BINARY_PATH_RAW=\"/usr/local/bin/go2rtc\" -DGO2RTC_CONFIG_DIR_RAW=\"/etc/lightnvr/go2rtc\" -DHTTP_BACKEND_LIBUV -DSOD_ENABLED -DUSE_GO2RTC

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions