No Description

Godzil 18e4bd08dd Split main_screen into its different part to make code cleaner. 3 days ago
Menu 91ac4bb81e Reverse set of file to their upstream version 1 week ago
skin 6676426897 Make first mockup of the main screen interface. 1 week ago 18e4bd08dd Split main_screen into its different part to make code cleaner. 3 days ago
.gitignore 9656c48adc ignore retrarch lpl files 1 week ago
LICENSE f91598bb0f Initial commit 1 month ago 5cb99e5511 screenshot 2 weeks ago d8eb571684 Make code running on Python3 and reformat all files(?) to follow PEP 8 3 weeks ago

GameShell launcher

This is the launcher for GameShell based on 320x240 resolution and D-Pad layout. Screenshot

Create the necessary user and group

  • User name: cpi
  • Password: cpi
  • Group ID: 31415 with group name: cpifav
sudo adduser cpi  
sudo groupadd cpifav -g 31415  
sudo adduser cpi cpifav  

Directory structure

├── apps
│   ├── emulators
│   └── launcher <-Here we are
│       ├── Menu
│       ├──
│       └── truetype
├── games
│   ├── FreeDM
│   ├── MAME
│   └── nxengine
└── music

Create the necessary directories

mkdir -p /home/cpi/apps/emulators  
mkdir -p /home/cpi/games  
mkdir -p /home/cpi/music  

Dependent packages

  • validators, numpy, requests, python-mpd2, beeprint, python-pycurl, python-alsaaudio, python-pygame, python-gobject, python-xlib, python-wicd
  • wicd (For Wi-Fi)
  • mpd (For music player)

Install dependent packages

sudo apt-get -y install mpd ncmpcpp git libuser
sudo apt-get -y install python-wicd  wicd wicd-curses python-pycurl python-alsaaudio python-pygame python-gobject python-xlib   

sudo apt-get -y install python-pip   
sudo pip install validators numpy requests python-mpd2

Create “.mpd_cpi.conf” config

vim ~/.mpd_cpi.conf

music_directory    "/home/cpi/music"
playlist_directory    "/home/cpi/music/playlists"
db_file    "/home/cpi/music/tag_cache"
log_file    "/tmp/mpd.log"
pid_file    "/tmp/"
state_file    "/home/cpi/music/mpd_state"
sticker_file    "/home/cpi/music/sticker.sql"
user    "cpi"
bind_to_address    "/tmp/mpd.socket"
auto_update    "yes"
auto_update_depth    "3" 
input {
    plugin "curl"

audio_output {
    type    "alsa"
    name    "My ALSA Device"

audio_output {
    type    "fifo"
    name    "my_fifo"
    path    "/tmp/mpd.fifo"
    format    "44100:16:2"

filesystem_charset    "UTF-8"