This file is indexed.

/usr/bin/sdm-wm is in sdm 0.4.1-4.

This file is owned by root:root, with mode 0o755.

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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#!/bin/sh
#/usr/bin/sdm-wm

# Copyright 2003, 2004 Vagrant Cascadian <vagrant@freegeek.org>.
# Licensed under the terms of the GNU General Public License,
# version 2 or any later version.

# TODO support window managers not in the debian alternatives 
# system

if [ -r ~/.sdmrc ]; then
    . ~/.sdmrc
fi

# check the debian alternatives system for available window managers
availablewm=$(/usr/sbin/update-alternatives --display \
    x-window-manager | awk '{print $1}' | egrep bin)

if [ -r /etc/sdm/windowmanagers ]; then
    availablewm="$availablewm $(egrep -v ^# /etc/sdm/windowmanagers | awk -F "=" '{print $2}')"
fi

wmlist=
for wm in $availablewm; do
    if [ -x "$wm" ]; then
        wmlist="FALSE $(basename $wm) $wm $wmlist"
    fi
done

if [ -n "$(which wmanager)" ]; then
    wmanager="FALSE wmanager $(which wmanager)"
fi

if [ -n "$(which selectwm)" ]; then
    selectwm="FALSE selectwm $(which selectwm)"
fi

windowmanager=$(zenity --list --radiolist \
    --title="which window manager would you like to try?" \
    --column="" --column="Name" --column="Description" \
    TRUE default "default window manager" \
    $wmlist \
    $wmanager \
    $selectwm \
    FALSE sdm-wm "sdm window manager selection" \
    FALSE browse "browse for window manager")

if [ "0" != "$?" ]; then
    xmessage -center "cancel pressed, exiting..."
    exit 1
fi

if [ "browse" = "$windowmanager" ]; then
    windowmanager=$(zenity --file-selection --title"Select windowmanager" --filename="/usr/bin")
    if [ ! -x "$windowmanager" ]; then
        windowmanager=
    fi
fi

zenity --question \
    --title="confirm selected windowmanager" \
    --text="Would you like to set $windowmanager as your \
    default window manager?"

if [ "0" = "$?" ]; then
    echo "windowmanager=$windowmanager" > ~/.sdmrc
fi

if [ "sdm-wm" = "$windowmanager" ]; then
    exec sdm-wm
fi