linuxmint / hypnotix

An M3U IPTV Player
1.08k stars 154 forks source link

how to build or run? documentation bug #313

Open piyushgarg opened 6 months ago

piyushgarg commented 6 months ago

I did not find anything how to build or run this project, after going through some code, it seems it can be run directly using python If anyone wants to run without install can follow these most steps:

#install xapp on arch
sudo pacman -Sy xapp
#create virtual environment
python -m venv $HOME/hypnotix 
$HOME/hypnotix/bin/python -m pip install --upgrade pip
#install the dependencies
$HOME/hypnotix/bin/pip install requests mpv imdbpy unidecode
#for gi package
export PYTHONPATH=/usr/lib/python3.11/site-packages

cd $HOME/git/
git clone git@github.com:linuxmint/hypnotix.git
cd hypnotix
#replace all the "/usr" related to usr in hypnotix.py
glib-compile-schemas usr/share/glib-2.0/schemas/
export GSETTINGS_SCHEMA_DIR=$HOME/git/hypnotix/usr/share/glib-2.0/schemas/

#start the hypnotix
$HOME/hypnotix/bin/python usr/lib/hypnotix/hypnotix.py