mirror of
https://github.com/imprudence/imprudence.git
synced 2026-08-14 00:58:02 +00:00
Fix - Did not register secondlife:// handler with KDE - http://redmine.kokuaviewer.org/issues/1068
This commit is contained in:
@@ -22,13 +22,12 @@ else
|
||||
fi
|
||||
|
||||
# Register handler for KDE-aware apps
|
||||
if [ -z "$KDEHOME" ]; then
|
||||
KDEHOME=~/.kde
|
||||
fi
|
||||
LLKDEPROTDIR=${KDEHOME}/share/services
|
||||
if [ -d "$LLKDEPROTDIR" ]; then
|
||||
LLKDEPROTFILE=${LLKDEPROTDIR}/secondlife.protocol
|
||||
cat > ${LLKDEPROTFILE} <<EOF || echo Warning: Did not register secondlife:// handler with KDE: Could not write ${LLKDEPROTFILE}
|
||||
for LLKDECONFIG in kde-config kde4-config; do
|
||||
if [ `which $LLKDECONFIG` ]; then
|
||||
LLKDEPROTODIR=`$LLKDECONFIG --path services | cut -d ':' -f 1`
|
||||
if [ -d "$LLKDEPROTODIR" ]; then
|
||||
LLKDEPROTOFILE=${LLKDEPROTODIR}/secondlife.protocol
|
||||
cat > ${LLKDEPROTOFILE} <<EOF || echo Warning: Did not register secondlife:// handler with KDE: Could not write ${LLKDEPROTOFILE}
|
||||
[Protocol]
|
||||
exec=${HANDLER} '%u'
|
||||
protocol=secondlife
|
||||
@@ -41,6 +40,8 @@ writing=false
|
||||
makedir=false
|
||||
deleting=false
|
||||
EOF
|
||||
else
|
||||
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.
|
||||
fi
|
||||
else
|
||||
echo Warning: Did not register secondlife:// handler with KDE: Directory $LLKDEPROTODIR does not exist.
|
||||
fi
|
||||
fi
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user