Changeset 3462


Ignore:
Timestamp:
Feb 1, 2017, 10:11:12 AM (2 years ago)
Author:
hectorgh
Message:

adding tilda autostart diversion

Location:
lliurex-artwork-defaults/trunk/fuentes/debian
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • lliurex-artwork-defaults/trunk/fuentes/debian/lliurex-artwork-defaults-common.postinst

    r3461 r3462  
    3030        ORIGINAL_AUTOSTART_FILE="/etc/xdg/autostart/deja-dup-monitor.desktop"
    3131        DIVERTED_AUTOSTART_FILE="/usr/share/lliurex-artwork-defaults/diversions/deja-dup-monitor.desktop"
     32
     33        ORIGINAL_AUTOSTART_FILE1="/usr/share/mate/autostart/tilda.desktop"
     34        DIVERTED_AUTOSTART_FILE1="/usr/share/lliurex-artwork-defaults/diversions/tilda.desktop"
     35
    3236
    3337
     
    6569        fi
    6670
     71        if [  -e "$ORIGINAL_AUTOSTART_FILE1" ]; then
     72
     73                dpkg-divert --add --package ${PKG} --rename --divert "$DIVERTED_AUTOSTART_FILE1" "$ORIGINAL_AUTOSTART_FILE1"
     74        fi
     75
    6776
    6877fi
  • lliurex-artwork-defaults/trunk/fuentes/debian/lliurex-artwork-defaults-common.prerm

    r3461 r3462  
    2121        ORIGINAL_AUTOSTART_FILE="/etc/xdg/autostart/deja-dup-monitor.desktop"
    2222        DIVERTED_AUTOSTART_FILE="/usr/share/lliurex-artwork-defaults/diversions/deja-dup-monitor.desktop"
     23
     24        ORIGINAL_AUTOSTART_FILE1="/usr/share/mate/autostart/tilda.desktop"
     25        DIVERTED_AUTOSTART_FILE1="/usr/share/lliurex-artwork-defaults/diversions/tilda.desktop"
    2326
    2427
     
    5558        fi
    5659
     60        if [ ! -e "$ORIGINAL_AUTOSTART_FILE1" ]; then
     61
     62                dpkg-divert --remove --package ${PKG} --rename --divert "$DIVERTED_AUTOSTART_FILE1" "$ORIGINAL_AUTOSTART_FILE1"
     63
     64        fi
    5765
    5866
Note: See TracChangeset for help on using the changeset viewer.