Skip to content

Latest commit

 

History

History
54 lines (35 loc) · 1.58 KB

SERVICE.md

File metadata and controls

54 lines (35 loc) · 1.58 KB

Service

There's an example service file there You'll have to modify different stuff depending on how you installed or not the script.

I'd be very grateful if someone made a PR with a bash script automating those ;)

Cloned Repository

In that case, you'll have to modify the WorkingDirectory to where you cloned the repo.

Pip

  1. Change WorkingDirectory to where you want the spaces to be downloaded.
  2. Find where your executable is by running which twspace_dl in your terminal.
  3. Change the /usr/bin/python twspace_dl part to the path of your executable.

Now to install the service, you can either install it as a user service(recommended if on your personal desktop), or as a normal service.

User

  1. Copy the file you modified earlier to ~/.config/systemd/user(create the systemd directory if it doesn't exist).
  2. run
systemctl --user daemon-reload
systemctl --user start twspace-dl@USER_ID.service

USER_ID is the part after https://x.com/ in the url of a twitter profile (i.e https://x.com/USER_ID)

To keep it working after restarts run:

systemctl --user enable twspace-dl@USER_ID.service

System

  1. Copy the file you modified earlier to /etc/systemd/system.
  2. run
sudo systemctl daemon-reload
sudo systemctl start twspace-dl@USER_ID.service

USER_ID is the part after https://x.com/ in the url of a twitter profile (i.e https://x.com/USER_ID)

To keep it working after restarts run:

sudo systemctl enable twspace-dl@USER_ID.service