Skip to content

Developing in Distrobox

trigg edited this page Sep 16, 2023 · 1 revision

Note that this is not the only way to manage to do this, but simply my preferred method. Alternative instructions are welcome

Distrobox - Archlinux - Code OSS

This assumes your host machine already has distrobox set up and working.

Start by creating a guest running arch linux

distrobox create --image archlinux

Install a few requirements

sudo pacman -S python-gobject libappindicator-gtk3 gtk-layer-shell python python-wheel base-devel openssl zlib git gobject-introspection python-pip python git code

Clone the repository, I personally like ~/.dev/ for my projects, but substitute as needed

mkdir -p ~/.dev/
cd !$
git clone https://github.com/trigg/Discover.git
cd Discover

Add Code OSS to your launcher with distrobox-export --app code

Run Code from the launcher

Press Ctrl-Shift-P and Create Python Environment and choose venv

In the terminal run source .venv/bin/activate

And now we install all the packages listed in setup.py

python -m pip install websocket-client pyxdg requests pillow python-xlib setuptools PyGObject

Since we store essential files in the module, it needs to be installed for it to run.

python -m pip install -e .

`

Now in Code, press Run > Start Debugging and choose python python module and type in discover_overlay