Skip to content
Snippets Groups Projects
Commit 6fde9c8f authored by Tofu Linden's avatar Tofu Linden
Browse files

DEV-39784 SNOW-218: KDE 4 applications don't recognize secondlife:// urls

patch by thickbrick sleaford, reviewed by me (tofu linden)
parent ed4ee718
No related branches found
No related tags found
No related merge requests found
...@@ -600,6 +600,7 @@ Tharax Ferraris ...@@ -600,6 +600,7 @@ Tharax Ferraris
Thickbrick Sleaford Thickbrick Sleaford
VWR-7109 VWR-7109
VWR-9287 VWR-9287
VWR-13483
VWR-13947 VWR-13947
Thraxis Epsilon Thraxis Epsilon
SVC-371 SVC-371
......
...@@ -22,13 +22,12 @@ else ...@@ -22,13 +22,12 @@ else
fi fi
# Register handler for KDE-aware apps # Register handler for KDE-aware apps
if [ -z "$KDEHOME" ]; then for LLKDECONFIG in kde-config kde4-config; do
KDEHOME=~/.kde if [ `which $LLKDECONFIG` ]; then
fi LLKDEPROTODIR=`$LLKDECONFIG --path services | cut -d ':' -f 1`
LLKDEPROTDIR=${KDEHOME}/share/services if [ -d "$LLKDEPROTODIR" ]; then
if [ -d "$LLKDEPROTDIR" ]; then LLKDEPROTOFILE=${LLKDEPROTODIR}/secondlife.protocol
LLKDEPROTFILE=${LLKDEPROTDIR}/secondlife.protocol cat > ${LLKDEPROTOFILE} <<EOF || echo Warning: Did not register secondlife:// handler with KDE: Could not write ${LLKDEPROTOFILE}
cat > ${LLKDEPROTFILE} <<EOF || echo Warning: Did not register secondlife:// handler with KDE: Could not write ${LLKDEPROTFILE}
[Protocol] [Protocol]
exec=${HANDLER} '%u' exec=${HANDLER} '%u'
protocol=secondlife protocol=secondlife
...@@ -41,6 +40,9 @@ writing=false ...@@ -41,6 +40,9 @@ writing=false
makedir=false makedir=false
deleting=false deleting=false
EOF EOF
else else
echo Warning: Did not register secondlife:// handler with KDE: Directory $LLKDEPROTDIR does not exist. echo Warning: Did not register secondlife:// handler with KDE: Directory $LLKDEPROTODIR does not exist.
fi fi
fi
done
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment