Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/CeibalEncuesta/gtk2/CeibalEncuesta/install.sh
blob: 54b2374e2a44c9f1435ad18541b0a4822ff4bdff (plain)
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
#!/bin/sh

TARGET=$HOME/.CeibalEncuesta
rm -rf $TARGET

echo "Copiando archivos en $TARGET"
cp . -a $TARGET

chmod 755 $TARGET/CeibalEncuesta.py
chmod 755 $TARGET/Iconos/ceibal.png

echo "Instalando icono de menu en GNOME"
sed "s:REPLACE:$TARGET:" $TARGET/CeibalEncuesta.desktop -i
cp $TARGET/CeibalEncuesta.desktop $HOME/.local/share/applications/
update-desktop-database $HOME/.local/share/applications/

DESKTOP_PATH=$HOME/Desktop
ESCRITORIO_PATH=$HOME/Escritorio

if [ -d $DESKTOP_PATH ]; then
cp $TARGET/CeibalEncuesta.desktop $DESKTOP_PATH
fi

if [ -d $ESCRITORIO_PATH ]; then
cp $TARGET/CeibalEncuesta.desktop $ESCRITORIO_PATH
fi

COMPLETED="CeibalEncuesta se ha instalado correctamente"

echo $COMPLETED