apt-get install libwebkit-dev # OR: yum install webkitgtk-devel gcc -o browser browser.c $(pkg-config --libs --cflags gtk+-2.0 webkit-1.0)
No special steps are required for installation. Just execute
This program was designed to be started via inittab on boot like this:
1:2345:respawn:/usr/bin/startx -e /usr/bin/browser http://10.0.0.5/zfs/monitor tty1 </dev/tty1 >/dev/tty1 2>&1
This will launch the browser in fullscreen mode and load the resource from
DEFAULT_URL hardwired in the source.
DEFAULT_URL can be anything that WebKit supports, including
file://-URLs for local webpages and documents.
The following keybinding exists:
F5for reloading the current page It's also implemented as a signal handler:
- hardwired size(
- hardwired URL (
gchar* DEFAULT_URL), no commandline argument
- hardwired position (
- no toggle fullscreen with F11, thus removed unmaximize() and USR1
- deleted Makefile, only one command(see above)