diff options
author | David Walter Seikel | 2014-02-03 15:23:22 +1000 |
---|---|---|
committer | David Walter Seikel | 2014-02-03 15:23:22 +1000 |
commit | d056a17f05a1f90708f554651475e116a2ddbd68 (patch) | |
tree | 07fa4f1cca2a25548b8d2d6b4752b07d8efbd2ff /linden/indra/newview/linux_tools | |
parent | Updating tree and volume LOD. These go to eleven. (diff) | |
parent | Fix up OTR prefs to not crash. (diff) | |
download | meta-impy-next.zip meta-impy-next.tar.gz meta-impy-next.tar.bz2 meta-impy-next.tar.xz |
Diffstat (limited to '')
-rwxr-xr-x | linden/indra/newview/linux_tools/register_secondlifeprotocol.sh | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/linden/indra/newview/linux_tools/register_secondlifeprotocol.sh b/linden/indra/newview/linux_tools/register_secondlifeprotocol.sh index 338fc26..3f2378a 100755 --- a/linden/indra/newview/linux_tools/register_secondlifeprotocol.sh +++ b/linden/indra/newview/linux_tools/register_secondlifeprotocol.sh | |||
@@ -22,13 +22,12 @@ else | |||
22 | fi | 22 | fi |
23 | 23 | ||
24 | # Register handler for KDE-aware apps | 24 | # Register handler for KDE-aware apps |
25 | if [ -z "$KDEHOME" ]; then | 25 | for LLKDECONFIG in kde-config kde4-config; do |
26 | KDEHOME=~/.kde | 26 | if [ `which $LLKDECONFIG` ]; then |
27 | fi | 27 | LLKDEPROTODIR=`$LLKDECONFIG --path services | cut -d ':' -f 1` |
28 | LLKDEPROTDIR=${KDEHOME}/share/services | 28 | if [ -d "$LLKDEPROTODIR" ]; then |
29 | if [ -d "$LLKDEPROTDIR" ]; then | 29 | LLKDEPROTOFILE=${LLKDEPROTODIR}/secondlife.protocol |
30 | LLKDEPROTFILE=${LLKDEPROTDIR}/secondlife.protocol | 30 | cat > ${LLKDEPROTOFILE} <<EOF || echo Warning: Did not register secondlife:// handler with KDE: Could not write ${LLKDEPROTOFILE} |
31 | cat > ${LLKDEPROTFILE} <<EOF || echo Warning: Did not register secondlife:// handler with KDE: Could not write ${LLKDEPROTFILE} | ||
32 | [Protocol] | 31 | [Protocol] |
33 | exec=${HANDLER} '%u' | 32 | exec=${HANDLER} '%u' |
34 | protocol=secondlife | 33 | protocol=secondlife |
@@ -41,6 +40,8 @@ writing=false | |||
41 | makedir=false | 40 | makedir=false |
42 | deleting=false | 41 | deleting=false |
43 | EOF | 42 | EOF |
44 | else | 43 | else |
45 | echo Info: Did not register secondlife:// handler with KDE: Directory $LLKDEPROTDIR does not exist. You can safely ignore this if you are not using KDE. | 44 | echo Warning: Did not register secondlife:// handler with KDE: Directory $LLKDEPROTODIR does not exist. |
46 | fi | 45 | fi |
46 | fi | ||
47 | done | ||