Unverified Commit 55b2aef2 authored by David Beniamine's avatar David Beniamine
Browse files

Import fix conky #15 from Primtux4

parent 87d44e23
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
#!/bin/bash


logfile="/var/log/`basename $0`_`date +%Y%m%d-%H%M`"
exec &> >(tee -a "$logfile")


# Copyright (C) 2018  Tetras Libre <Contact@Tetras-Libre.fr>
# Author: Beniamine, David <David.Beniamine@Tetras-Libre.fr>
#
@@ -33,6 +38,8 @@ $DIR/set_mime_apps.sh
$DIR/set_screens.sh
$DIR/install_print_drivers.sh
$DIR/install_vnc.sh
$DIR/install_conky.sh
$DIR/upgrade_repository.sh

sed -i -e 's/lametro.fr/perdu.com/' /etc/conky/conky.conf

install_conky.sh

0 → 100755
+42 −0
Original line number Diff line number Diff line
#!/bin/bash
USERS="prof direction administrateur"

for u in $USERS
do
    launcher_path="/home/$u/.config/xfce4/panel/launcher-11/15502394761.desktop"
    xml_path="/home/$u/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-panel.xml"
    if [ -z "`grep -R conky /home/$u/.config/xfce4/panel`" ]
    then
    mkdir /home/$u/.config/xfce4/panel/launcher-11
        cat << EOF > $launcher_path
[Desktop Entry]
Version=1.0
Type=Application
Name=Conky
Comment=
Exec=/usr/bin/conky
Icon=4137_winhlp32.0
Path=
Terminal=false
StartupNotify=false
EOF
    sed -i.bak \
        -e 's@\(\s*\)\(<value type="int" value="2"/>\)@\1\2\n\1<value type="int" value="11"/>@' \
    $xml_path
    tmp_path="/tmp/$$"
    head -n -2 $xml_path > $tmp_path
    cat << EOF >> $tmp_path
    <property name="plugin-11" type="string" value="launcher">
      <property name="items" type="array">
        <value type="string" value="15502394761.desktop"/>
      </property>
    </property>
  </property>
</channel>
EOF
    mv /tmp/$$ $xml_path
    chown -R $u:$u $xml_path
    chown $u:$u $xml_path
fi
done
+1 −0
Original line number Diff line number Diff line
@@ -39,6 +39,7 @@ $DIR/set_screens.sh
$DIR/install_print_drivers.sh
$DIR/fix_libreoffice.sh
$DIR/install_vnc.sh
$DIR/install_conky.sh
$DIR/upgrade_repository.sh

# Install missing libreoffice gtk