summaryrefslogtreecommitdiffstats
path: root/kdialogd-wrapper
blob: 5941e66f522e514e4bcde0fb0eea6dc0bec9ebd0 (plain)
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
#!/bin/bash

#
# This script is part of the KGtk package.
#
# (C) Craig Drummond, 2007
#
# [email protected]
#
# --
# Released under the GPL v2 or later
# --
#
# Wrapper script for kdialogd that removes any LD_PRELOAD. This stops
# KDialogD from trying to connect to itself!
#

LD_PRELOAD=

for app in $prefer kdialogd4 kdialogd3 ; do
    which $app > /dev/null
    if [ $? -eq 0 ] ; then
        $app
        break;
    fi
done