This file is indexed.

prerm is in desktop-base 7.0.3ubuntu1.

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
33
34
35
36
37
38
39
40
41
42
43
#!/bin/sh -e
set -e



if [ "$1" = "remove" ] || [ "$1" = "deconfigure" ]; then
    # remove background alternatives
    for background in \
          joy-wallpaper_1600x1200.svg \
          joy-wallpaper_1600x1200.svg \
          joy-wallpaper_1280x1024.svg \
          joy-wallpaper_1920x1080.svg \
          joy-wallpaper_1920x1200.svg \
          joy-inksplat-wallpaper_1920x1080.svg \
          spacefun-wallpaper.svg \
          spacefun-wallpaper-widescreen.svg \
          moreblue-orbit-wallpaper.svg \
          moreblue-orbit-wallpaper-widescreen.svg \
          nightly-wallpaper.png \
          debian-blueish-wallpaper.svg \
          ; do
        update-alternatives --remove desktop-background /usr/share/images/desktop-base/$background
    done
    update-alternatives --remove desktop-background.xml /usr/share/images/desktop-base/joy.xml

    # remove splash alternatives
    for splash in \
          spacefun-splash.svg \
          moreblue-orbit-splash.png \
          gnome-splash-curves.png \
          ; do
        update-alternatives --remove desktop-splash /usr/share/images/desktop-base/$splash
    done

    # remove grub alternatives
    for background in \
          joy-grub.png \
          spacefun-grub.png \
          spacefun-grub-widescreen.png \
          ; do
        update-alternatives --remove desktop-grub /usr/share/images/desktop-base/$background
    done
fi