Skip to content
Snippets Groups Projects
Commit 25d988b3 authored by JennaHuntsman's avatar JennaHuntsman
Browse files

Revert "Add support for OpenSim hop:// protocol"

This reverts commit 8c63fac1
parent a31daff4
No related branches found
No related tags found
No related merge requests found
...@@ -45,7 +45,7 @@ PrefersNonDefaultGPU=false ...@@ -45,7 +45,7 @@ PrefersNonDefaultGPU=false
[Desktop Action AssociateMIME] [Desktop Action AssociateMIME]
Exec=${installation_prefix}/etc/register_secondlifeprotocol.sh Exec=${installation_prefix}/etc/register_secondlifeprotocol.sh
Name=Associate SLURLs Name=Associate SLURLs
Comment=Set this viewer as the default handler for secondlife:// and hop:// links. Comment=Set this viewer as the default handler for secondlife:// links.
desktopfile 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. #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 ...@@ -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 cat >"${handlerpath}" <<EOFnew || print "Warning: Did not register secondlife:// handler with xdg-mime: Could not write $newhandler"s
[Desktop Entry] [Desktop Entry]
Version=1.4 Version=1.4
Name="Second Life and OpenSim URL handler" Name="Second Life URL handler"
Comment="secondlife:// and hop:// URL handler" Comment="secondlife:// URL handler"
Type=Application Type=Application
Exec=$desired_handler %u Exec=$desired_handler %u
Terminal=false Terminal=false
StartupNotify=true StartupNotify=true
NoDisplay=true NoDisplay=true
MimeType=x-scheme-handler/secondlife;x-scheme-handler/hop;x-scheme-handler/x-grid-info;x-scheme-handler/x-grid-location-info; MimeType=x-scheme-handler/secondlife
EOFnew EOFnew
# TODO: use absolute path for the desktop file # TODO: use absolute path for the desktop file
...@@ -55,7 +55,7 @@ EOFnew ...@@ -55,7 +55,7 @@ EOFnew
print "SLURL Handler has not changed, leaving as-is." print "SLURL Handler has not changed, leaving as-is."
fi fi
fi fi
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 xdg-mime default "${newhandler}" x-scheme-handler/secondlife
if command -v update-desktop-database >/dev/null 2>&1; then if command -v update-desktop-database >/dev/null 2>&1; then
update-desktop-database "${localappdir}" update-desktop-database "${localappdir}"
print "Registered ${desired_handler} as secondlife:// protocol handler with xdg-mime." 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