O4k 639f4c1700
Allows for new skin config.ini format(s)
The new code checks for a config.ini file in the Skin's folder. Then it checks for a "Font_Paths" section where it replaces the default fonts with the names of the new fonts listed in the Config. You will have to add the desired fonts to the truetype folder within the skin folder and update the config to match the fonts you have added. If you remove the existing fonts in that folder, the launcher will not load if there is a problem with the config file.

Note that the system-wide font name variables do not change, but their referenced file does.

The new Config file would look something like this:
    
    [Font_Paths]
    varela = Roboto-Black
    veramono = Roboto-Regular
    noto = Roboto-Bold
    notocjk = Roboto-Light

    [Colors]
    High = #f0ffff
    Text = #ffffff
    ReadOnlyText = #ffffff
    Front = #614f7d
    URL = #f0ffff
    Line = #614f7d
    TitleBg = #111013
    Active = #ff70ba
    Disabled = #e6e6ff
    White = #111013
    Black = #614f7d
2019-12-21 10:32:14 -08:00
2018-12-18 17:01:53 +08:00
2019-08-26 08:02:51 +00:00
2019-07-01 23:46:53 +08:00
2019-06-26 11:30:31 +08:00
twm
2018-12-18 16:47:13 +08:00
2019-01-12 21:23:58 +08:00
2019-01-04 18:47:27 +08:00
2019-01-04 18:47:27 +08:00
2019-01-12 21:23:58 +08:00
2019-05-10 19:03:04 +08:00
2018-05-25 22:02:50 +08:00
2019-10-15 18:13:33 +02:00
2019-08-07 16:05:36 +08:00

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

/home/cpi/
├── apps
│   ├── emulators
│   └── launcher <-Here we are
│       ├── Menu
│       ├── sys.py
│       └── 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

With pip install and virtualenv

mkvirtualenv launcher
pip install -r requirements.txt

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/mpd.pid"
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"
Description
The launcher for GameShell
Readme GPL-3.0 51 MiB
Languages
Python 97.7%
Lua 2%
Shell 0.3%