source: lliurex-artwork-defaults/trunk/fuentes/debian/lliurex-artwork-defaults-desktop.prerm @ 2169

Last change on this file since 2169 was 2169, checked in by hectorgh, 3 years ago

wip on mate session

File size: 529 bytes
Line 
1#!/bin/bash
2
3set -e
4
5
6if [ "$1" = "remove" ] ; then
7        PKG="lliurex-artwork-defaults-desktop"
8        ORIGINAL_UNITY_FILE="/usr/share/xsessions/mate.desktop"
9        NEW_DIVERTED_FILE="/usr/share/diverted-sessions/mate.desktop"
10        dpkg-divert --remove --package ${PKG} --rename --divert "$NEW_DIVERTED_FILE" "$ORIGINAL_UNITY_FILE"
11
12
13        update-alternatives \
14                --remove  lliurex-default-background.png  /usr/share/backgrounds/lliurex16-desktop-HD.png
15
16        update-alternatives --auto lliurex-default-background.png
17
18
19fi
20#DEBHELPER#
21
22exit 0
Note: See TracBrowser for help on using the repository browser.