Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: aaba36794315fd4b30a5e7b673b72a9a72762e82 (plain) (blame)
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

#!/usr/bin/env bash

# of special interest, though most won't be defined
echo "\$WINDOWMANAGER: $WINDOWMANAGER"
echo "\$WINDOW_MANAGER: $WINDOW_MANAGER"
echo "\$DESKTOP_SESSION: $DESKTOP_SESSION"
echo "\$XDG_CURRENT_DESKTOP: $XDG_CURRENT_DESKTOP"
echo "\$GDMSESSION: $GDMSESSION"

echo "uname -a"
uname -a
echo
echo "lsb_release -a"
lsb_release -a
echo
echo "cat /etc/lsb-release"
cat /etc/lsb-release
echo
echo "cat /etc/SuSE-release"
cat /etc/SuSE-release
echo
echo "rpm -q cairo"
rpm -q cairo
echo
echo "rpm -q gtk2"
rpm -q gtk2
echo
echo "rpm -q glibc"
rpm -q glibc
echo
echo "rpm -q pango"
rpm -q pango
echo
echo "rpm -q glib2"
rpm -q glib2
echo

echo
echo "Check if any window managers are running (xfwm|twm|metacity|beryl|fluxbox|compiz):"
ps -ef | egrep -i "xfwm|twm|metacity|beryl|fluxbox|compiz" | grep -v egrep
echo
echo
# unity|mint|gnome|kde|xfce|ion|wmii|dwm (was original list, but matched too much,
# espeically "ion' I suppose.
echo "Check for popular desktop environments (gnome or kde):"
ps -ef | egrep -i "gnome|kde" | grep -v egrep

echo
echo " == all env variables == "
printenv
echo
echo
# we always end with "success" even though some commands may "fail"
exit 0

Back to the top