Ignore:
Timestamp:
Jun 6, 2017, 5:21:33 PM (2 years ago)
Author:
daduve
Message:

Conky save the personal skin in your home

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lliurex-conky/trunk/fuentes/lliurex-conky.install-files/usr/share/lliurex-conky/conkyrc_gui

    r4942 r5101  
    99CONKYRC_STUDENTS=$FILE_PATH/conkyrc_students
    1010CONKYRC_STUDENTS_BASE=$FILE_PATH/conkyrc_students_base
    11 CONKYRC_USED=$FILE_PATH/conkyrc_used
     11#CONKYRC_USED=$FILE_PATH/conkyrc_used
     12CONKYRC_USED=$HOME/.config/lliurex-conky/conkyrc_used
    1213
    1314
     
    386387##########PROGRAMA PRINCIPAL############
    387388zero-center add-pulsating-color lliurex-conky
     389if [[ ! -e $HOME/.config/lliurex-conky ]]; then
     390        mkdir -p $HOME/.config/lliurex-conky
     391fi
     392
     393if [[ ! -f /tmp/architecture.txt ]]; then
     394        touch /tmp/architecture.txt
     395        chmod 777 /tmp/architecture.txt
     396fi
     397
     398uname -m > /tmp/architecture.txt
     399
    388400killall conky
    389401avaiable
     
    394406        change_colour
    395407        server_rc
    396         rm $CONKYRC_USED
     408        if [[ -f $CONKYRC_USED ]]; then
     409                rm $CONKYRC_USED
     410        fi
    397411        cp $CONKYRC_ADMIN_BASE $CONKYRC_USED
    398412        echo "" >>$CONKYRC_USED
     
    491505        change_colour
    492506        student_rc
    493         rm $CONKYRC_USED
     507        if [[ -f $CONKYRC_USED ]]; then
     508                rm $CONKYRC_USED
     509        fi
    494510        cp $CONKYRC_STUDENTS_BASE $CONKYRC_USED
    495511       
Note: See TracChangeset for help on using the changeset viewer.