source: lliurex-artwork-defaults/trunk/fuentes/debian/lliurex-artwork-defaults-desktop.postinst @ 2344

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

adding postinst

  • Property svn:executable set to *
File size: 1.1 KB
Line 
1#!/bin/bash
2
3set -e
4
5
6APPORT_FILE="/etc/default/apport"
7
8
9if  [ "$1" = "configure" ] ; then
10
11        #update dconf database, as we droped new settings
12        dconf update
13       
14        #gconf trigger, for those settings still using gconf
15        [ -x /usr/bin/update-gconf-defaults ]  &&  /usr/bin/update-gconf-defaults
16
17        # Xsession diversion to solve the Unity problem
18        # Unity must be diverted
19
20        # First create the directory for destination desktops
21        [ -d "/usr/share/diverted-sessions/" ] || mkdir -p "/usr/share/diverted-sessions/"
22
23        ORIGINAL_UNITY_FILE="/usr/share/xsessions/mate.desktop"
24        NEW_DIVERTED_FILE="/usr/share/diverted-sessions/mate.desktop"
25        PKG="lliurex-artwork-defaults-desktop"
26        dpkg-divert --add --package ${PKG} --rename --divert "$NEW_DIVERTED_FILE" "$ORIGINAL_UNITY_FILE"
27
28
29        update-alternatives \
30                --install /usr/share/backgrounds/lliurex-default-background.png lliurex-default-background.png \
31                /usr/share/backgrounds/lliurex/lliurex16-desktop-HD.png 500
32
33
34        update-icon-caches /usr/share/icons/hicolor/scalable/ || true 
35
36
37        # DISABLE APPORT
38        echo "enabled=0" > "$APPORT_FILE"
39
40fi
41
42#DEBHELPER#
43
44exit 0
45
Note: See TracBrowser for help on using the repository browser.