This file is indexed.

postinst is in ichthux-default-settings 1:6.10-2ubuntu4.

This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#! /bin/sh
set -e



case "$1" in
  configure)
     echo Adding Ichthux path to kderc
     if ! grep "[Directories-default]" /etc/kderc; then
        echo "[Directories-default]" >> /etc/kderc  
        echo "prefixes=" >> /etc/kderc  
     fi
     # We append the ichthux config path to the end of the prefixes
    if ! grep "ichthux-default-settings" /etc/kderc; then
        sed -i -e 's@^\(prefixes=.*\)$@\1,/usr/share/ichthux-default-settings/kde-profile/default/@' /etc/kderc
     fi

    # switch kdm theme to Ichthux
    if grep -q '^Theme=/usr/share/apps/kdm/themes/kubuntu' /etc/kde3/kdm/kdmrc; then
        echo "Replacing Kubuntu theme with Ichthux theme"
        sed -i -e 's@themes/kubuntu@themes/ichthux@' /etc/kde3/kdm/kdmrc
    fi
    if grep -q '^Theme=/usr/share/apps/kdm/themes/ichthux' /etc/kde3/kdm/kdmrc && grep -q '^UseTheme=false' /etc/kde3/kdm/kdmrc; then
        sed -i -e 's/UseTheme=false/UseTheme=true/' /etc/kde3/kdm/kdmrc
        echo "Installing and enabling Ichthux KDM theme ..."
    else
        echo "KDM theme customised or already enabled, not touching kdmrc ..."
    fi
    ;;
esac

exit 0