tweak: add documentation for segfault, debug in build.sh

This commit is contained in:
NunoSempere 2023-01-22 13:39:25 +01:00
parent 707b84492c
commit 00113a38f4
3 changed files with 15 additions and 2 deletions

View File

@ -17,11 +17,12 @@ This is my personal version. Contribute upstream to [github.com/mini-rose/rose](
### To do
- [ ] Add "open in new window" functionality. <https://stackoverflow.com/questions/40180757/webkit2gtk-get-new-window-link>
- Useful for opening links in new tab when clicking on them and selecting that option
- And for actually opening links with the href newtab option.
- Links: <https://docs.gtk.org/gobject/func.signal_connect.html>, <https://webkitgtk.org/reference/webkit2gtk/2.37.90/signal.AutomationSession.create-web-view.html>, <https://webkitgtk.org/reference/webkit2gtk/2.26.0/WebKitWebView.html#WebKitWebView-create>
- [ ] Find out what each of the css elements refers to.
- [ ] Use something other than Whatsapp as an example syslink.
Done:
- [x] String substitution on uri in order to redirect to better frontends.

View File

@ -1,7 +1,10 @@
#!/bin/bash
CC=clang
SRC=rose.c
REQS=./plugins/*/*.c
DEPS=('webkit2gtk-4.0')
DEBUG="" # set to "-g" for debug mode.
INCS=`pkg-config --cflags ${DEPS[@]}`
LIBS=`pkg-config --libs ${DEPS[@]}`
@ -10,4 +13,4 @@ LIBS=`pkg-config --libs ${DEPS[@]}`
WYEBAB='-L/usr/lib/wyebrowser/adblock.so'
# echo $CC $INCS $LIBS $SRC $REQS $WYEBAB -o rose
$CC $INCS $LIBS $SRC $REQS $WYEBAB -o rose
$CC $DEBUG $INCS $LIBS $SRC $REQS $WYEBAB -o rose

View File

@ -0,0 +1,9 @@
In case you arrive at a segmentation fault when working on rose, you can use valgrind.
To do this, you can compile rose with the `DEBUG` value in `build.sh` set to `-g`
and then:
```
valgrind --track-origins=yes ./rose
```