install_prefix=$(builtin cd"${RUN_PATH}/.."||exit;pwd)#This is a cleaner way of getting the absolute path for the install directory.
function print(){
log_prefix="${VIEWERNAME}DesktopIntegration:"
echo-e"${log_prefix}$*"
}
function install_desktop_entry()
{
local installation_prefix="${1}"
...
...
@@ -40,6 +46,8 @@ Name=Associate SLURLs
Comment=Set this viewer as the default handler for secondlife:// 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.
#The "PrefersNonDefaultGPU" line should automatically run the viewer on the most powerful GPU in the system, if it is not default. If it is, this is ignored.
# NOTE: DO NOT CHANGE THE "GenericName" FIELD - ONLY CHANGE THE "Name" FIELD. (This is to ensure that searching "Second Life" will show all the viewers installed in a user's system, regardless of their canonical name.)
#NOTE: Above command takes the path to the icon to install && The name of the icon to be used by XDG. This should always be in the format of "x-Viewer" to avoid potential naming conflicts, as per XDG spec.