PiBox Launcher
-
Upload
michael-hammel -
Category
Technology
-
view
78 -
download
0
Transcript of PiBox Launcher
Default
The
PiBox Launcher
Michael J. Hammel
http://www.graphics-muse.org
[email protected]
Overview
Purpose
Build and Install
Features
Code
http://vectorcharacters.net/robot-vector-characters/flying-robot-vector-character
Purpose
PiBox Media Center UI
ConsumerReadyInterface
ApplicationSelection
Rules for Applicationintegration
Drop inFront end!
http://vectorcharacters.net/robot-vector-characters/flying-robot-vector-character
Consumer Ready Interace
http://vectorcharacters.net/robot-vector-characters/flying-robot-vector-character
Build and Install
Build
Downloadhttps://gitlab.com/pibox/launcher.gitSet TC, SD and Opkg direxport TC=export SD=export OD=/usr/local/bin (usually)Build./cross.sh -o=$OD -s=$SD -t=$TDGenerates package in opkg directory
http://vectorcharacters.net/robot-vector-characters/flying-robot-vector-character
Features
Application Package
Provides iconsIcon points to XML configXML config links to appLauncher calls appmgrApp runs on top!
http://vectorcharacters.net/robot-vector-characters/flying-robot-vector-character
Code
Source Tree
Build files: autconf based
autoreconf -i
./configure
make
src: the C source files
data: XML, other config files, images
opkg: Handles generating packages
http://vectorcharacters.net/robot-vector-characters/flying-robot-vector-character
Source Code
launcher.c: main, UI code
db.c: Read XML configs
cli.c: handle command line options
log.c: Debug library (replaced by libpnc's pncLogger() functions)
utils.c: Utility functions like string handling
http://vectorcharacters.net/robot-vector-characters/flying-robot-vector-character
Launcher UI
Two screen areas: app icons and app splash
Both are Cairo-capable drawing areas
Callbacks for screen updates
Callback for keypress move from icon to icon
Notify function messages appmgr daemon
And that's it!
http://vectorcharacters.net/robot-vector-characters/flying-robot-vector-character
XML Config
Network Configuration Michael J. Hammel [email protected] /usr/bin/pibox-network-config -e icons/Wifi.png icons/Wifi-Splash.png Configure the network
http://vectorcharacters.net/robot-vector-characters/flying-robot-vector-character
Icons and Splash
PNG only
Icons: 118 x 120
Splash: 390 x 390
Selected icon gets white border automatically
Icons can't be square on ARM due to Cairo bug!
http://vectorcharacters.net/robot-vector-characters/flying-robot-vector-character
Click to edit the title