Merge branch 'comment_example' into 'main'

extend comment about GI_TYPELIB_PATH

See merge request Librem5/feedbackd!87
This commit is contained in:
Guido Gunther
2022-12-15 10:10:50 +00:00
4 changed files with 11 additions and 5 deletions
+2 -2
View File
@@ -46,13 +46,13 @@ way to get going is to do the following:
To run the daemon use
```sh
_build/run
_build/run _build/src/feedbackd
```
To run under gdb use
``` sh
FBD_GDB=1 _build/run
FBD_GDB=1 _build/run _build/src/feedbackd
```
You can introspect and get the current theme with
+6 -1
View File
@@ -1,6 +1,11 @@
#!/usr/bin/python3
#
# export GI_TYPELIB_PATH=/usr/local/lib/x86_64-linux-gnu/girepository-1.0/
# depends on GObject introspection data for libfeedback
#
# After building from source you can start this example like this:
# _build/run examples/example.py
# Otherwise like this:
# GI_TYPELIB_PATH=</somepath/girepository-x.y/> example.py
import gi
import time
+2 -1
View File
@@ -7,6 +7,7 @@ FEEDBACK_THEME=${FEEDBACK_THEME:-"${ABS_SRCDIR}/data/default.json"}
export FEEDBACK_THEME
export GSETTINGS_SCHEMA_DIR="${ABS_BUILDDIR}/data"
export GI_TYPELIB_PATH="${ABS_BUILDDIR}/libfeedback:$GI_TYPELIB_PATH"
if [ "${FBD_GDB}" = 1 ]; then
echo "Running feedbackd under gdb"
@@ -14,4 +15,4 @@ if [ "${FBD_GDB}" = 1 ]; then
fi
set -x
exec ${WRAPPER} "${ABS_BUILDDIR}/src/feedbackd" "$@"
exec ${WRAPPER} "$@"
@@ -1,4 +1,4 @@
[D-BUS Service]
Name=org.sigxcpu.Feedback
Exec=@ABS_BUILDDIR@/run
Exec=@ABS_BUILDDIR@/run @ABS_BUILDDIR@/src/feedbackd