-
Notifications
You must be signed in to change notification settings - Fork 0
/
INSTALL.sh
31 lines (28 loc) · 721 Bytes
/
INSTALL.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/bash
# an install file that:
# 1. creates a terminal alias
# 2. installs python dependencies
# 3. sets app as a start-up process
# 1. Create a terminal alias in .bashrc
echo "alias columnar='python3 ~/Columnar/columnar.py &'" >> ~/.bashrc
# 2. Install python dependencies
#pip install -r requirements.txt
sudo apt install libgirepository1.0-dev
# 3. set up as start-up process
# get username
name=$(whoami)
#build the .desktop file
cd ~/.config/autostart/
cat <<EOT >> columnar.desktop
[Desktop Entry]
Type=Application
Path=/home/$name/Columnar/
Exec=python3 columnar.py
Terminal=false
Icon=htop
Hidden=false
NoDisplay=false
X-GNOME-Autostart-enabled=true
Name[en_US]=columnar
Comment[en_US]=runs columnar
EOT