Skip to content
Snippets Groups Projects
Verified Commit 0a2063a6 authored by JennaHuntsman's avatar JennaHuntsman Committed by Xenhat Hex
Browse files

Update indra/newview/linux_tools/install.sh

parent 6bfeb892
No related branches found
No related tags found
2 merge requests!3Update to main branch,!2Rebase onto current main branch
...@@ -59,7 +59,6 @@ function homedir_install() ...@@ -59,7 +59,6 @@ function homedir_install()
fi fi
install_to_prefix "$HOME/.local/share/alchemy-install" install_to_prefix "$HOME/.local/share/alchemy-install"
$HOME/.local/share/alchemy-install/etc/refresh_desktop_app_entry.sh
} }
function root_install() function root_install()
...@@ -77,7 +76,6 @@ function root_install() ...@@ -77,7 +76,6 @@ function root_install()
install_to_prefix "$install_prefix" install_to_prefix "$install_prefix"
mkdir -p /usr/local/share/applications mkdir -p /usr/local/share/applications
${install_prefix}/etc/refresh_desktop_app_entry.sh
} }
function install_to_prefix() function install_to_prefix()
...@@ -124,6 +122,8 @@ function install_to_prefix() ...@@ -124,6 +122,8 @@ function install_to_prefix()
rm "$1/bin/llplugin/.user_does_not_want_chrome_sandboxing_and_accepts_the_risks" 2> /dev/null rm "$1/bin/llplugin/.user_does_not_want_chrome_sandboxing_and_accepts_the_risks" 2> /dev/null
pkexec "$1/etc/chrome_sandboxing_permissions_setup.sh" || die "Failed to set permissions on chrome-sandbox" pkexec "$1/etc/chrome_sandboxing_permissions_setup.sh" || die "Failed to set permissions on chrome-sandbox"
fi fi
sh "$1/etc/refresh_desktop_app_entry.sh" || echo "Failed to integrate into DE via XDG."
set_slurl_handler "$1"
} }
function backup_previous_installation() function backup_previous_installation()
...@@ -134,6 +134,16 @@ function backup_previous_installation() ...@@ -134,6 +134,16 @@ function backup_previous_installation()
mv "$1" "$backup_dir" || die "Failed to create backup of existing installation!" mv "$1" "$backup_dir" || die "Failed to create backup of existing installation!"
} }
function set_slurl_handler()
{
local install_dir=$1
prompt "Would you like to set Alchemy as your default SLurl handler? [Y/N]: "
if [[ $? == 0 ]]; then
exit 0
fi
"$install_dir"/etc/register_secondlifeprotocol.sh #Successful association comes with a notification to the user.
}
if [ "$UID" == "0" ]; then if [ "$UID" == "0" ]; then
root_install root_install
......
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