1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-12 15:27:14 +03:00
EDMarketConnector/scripts/edmarketconnector.sh
Athanasius b630445315
Linux: Add install/setup and startup script
This *should* allow for easy setup to work on any XDG-compliant desktop
environment.  Just run `scripts/linux-setup.sh` and it will:

1. Determine the 'root' directory of the EDMarketConnector source you're
  using.
2. Check you have `${HOME}/bin` in PATH and it exists as a directory.
3. Copy `scripts/edmarketconnector.sh` to there, replacing the string
  `EDMC_PATH` with the 'root' directory.
4. Copy .png (icon) and .desktop files into ~/.local/share/... locations.

Then the desktop environment should have a menu entry for
"E:D Market Connector", which attempts to run `edmarketconnector`, which
should now be the shell script present in ${HOME}/bin.
2023-01-10 14:59:54 +00:00

9 lines
193 B
Bash

#!/bin/sh
set -e
# NB: EDMC_PATH is replaced with the correct value by the
# scripts/linux-setup.sh script. So, no, there's no missing '$' here.
cd EDMC_PATH
python3 EDMarketConnector.py