Skip to content
Snippets Groups Projects
Commit 8c63fac1 authored by JennaHuntsman's avatar JennaHuntsman
Browse files

Add support for OpenSim hop:// protocol

parent 86160c65
No related branches found
No related tags found
No related merge requests found
......@@ -45,7 +45,7 @@ PrefersNonDefaultGPU=false
[Desktop Action AssociateMIME]
Exec=${installation_prefix}/etc/register_secondlifeprotocol.sh
Name=Associate SLURLs
Comment=Set this viewer as the default handler for secondlife:// links.
Comment=Set this viewer as the default handler for secondlife:// and hop:// links.
desktopfile
#The above adds some options when the shortcut is right-clicked, to launch on the default (usually integrated) GPU, and to force MIME type association.
......
......@@ -29,14 +29,14 @@ if command -v xdg-mime query default x-scheme-handler/secondlife >/dev/null 2>&1
cat >"${handlerpath}" <<EOFnew || print "Warning: Did not register secondlife:// handler with xdg-mime: Could not write $newhandler"s
[Desktop Entry]
Version=1.4
Name="Second Life URL handler"
Comment="secondlife:// URL handler"
Name="Second Life and OpenSim URL handler"
Comment="secondlife:// and hop:// URL handler"
Type=Application
Exec=$desired_handler %u
Terminal=false
StartupNotify=true
NoDisplay=true
MimeType=x-scheme-handler/secondlife
MimeType=x-scheme-handler/secondlife;x-scheme-handler/hop;x-scheme-handler/x-grid-info;x-scheme-handler/x-grid-location-info;
EOFnew
# TODO: use absolute path for the desktop file
......@@ -55,7 +55,7 @@ EOFnew
print "SLURL Handler has not changed, leaving as-is."
fi
fi
xdg-mime default "${newhandler}" x-scheme-handler/secondlife
xdg-mime default "${newhandler}" x-scheme-handler/secondlife x-scheme-handler/hop x-scheme-handler/x-grid-info x-scheme-handler/x-grid-location-info
if command -v update-desktop-database >/dev/null 2>&1; then
update-desktop-database "${localappdir}"
print "Registered ${desired_handler} as secondlife:// protocol handler with xdg-mime."
......
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