UGDESKTOP=$HOME/hp-documentation-sbso.desktop
if [ -f "$UGDESKTOP" ]; then
    xdg-desktop-icon install /etc/skel/hp-documentation-sbso.desktop
    #reinstall-again if failed (LP: #1163775)
    if [ $? != 0 ] ; then xdg-desktop-icon install /etc/skel/hp-documentation-sbso.desktop ; fi
    rm $UGDESKTOP

    LAUNCHERFAV=$(dbus-launch --exit-with-session gsettings get com.canonical.Unity.Launcher favorites | sed "s/^\[/['application:\/\/hp-documentation-sbso.desktop',\ /")
    dbus-launch --exit-with-session gsettings set com.canonical.Unity.Launcher favorites "$LAUNCHERFAV"
    # workaround for User Guide path of other languages (LP: #1244017)
fi
