Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Alchemy Viewer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package Registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Silent mode is enabled
All outbound communications are blocked.
Learn more
.
Show more breadcrumbs
Alchemy Viewer
Alchemy Viewer
Commits
82b7a885
Commit
82b7a885
authored
3 years ago
by
Xenhat Hex
Committed by
Rye Mutt
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Additional fixes from Jenna Huntsman
parent
ab266f02
No related branches found
No related tags found
1 merge request
!53
Fix Linux SLURL protocol handling
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
indra/newview/linux_tools/register_secondlifeprotocol.sh
+5
-2
5 additions, 2 deletions
indra/newview/linux_tools/register_secondlifeprotocol.sh
with
5 additions
and
2 deletions
indra/newview/linux_tools/register_secondlifeprotocol.sh
+
5
−
2
View file @
82b7a885
...
...
@@ -17,6 +17,9 @@ if [ -z "${desired_handler}" ]; then
desired_handler
=
"
$(
pwd
)
/etc/handle_secondlifeprotocol.sh"
fi
# Ensure the handle_secondlifeprotocol.sh file is executeable (otherwise, xdg-mime won't work)
chmod
+x
"
$desired_handler
"
# # Register handler for KDE-aware apps
# for kdeconfig in ${LLKDECONFIG} kf5-config kde4-config kde-config; do
# if command -v "${kdeconfig}" >/dev/null 2>&1; then
...
...
@@ -61,7 +64,7 @@ if command -v xdg-mime query default x-scheme-handler/secondlife >/dev/null 2>&1
handlerpath
=
"
${
localappdir
}
/
${
newhandler
}
"
cat
>
"
${
handlerpath
}
"
<<
EOFnew
|| print "Warning: Did not register secondlife:// handler with xdg-mime: Could not write
$newhandler
"s
[Desktop Entry]
Version=1.
5
Version=1.
4
Name="Second Life URL handler"
Comment="secondlife:// URL handler"
Type=Application
...
...
@@ -87,7 +90,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
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."
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment