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
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
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
Testicular Slingshot
Alchemy Viewer
Commits
551e6a45
Commit
551e6a45
authored
10 years ago
by
Cinder
Browse files
Options
Downloads
Patches
Plain Diff
STORM-1949
parent
7dbd79da
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
doc/contributions.txt
+1
-0
1 addition, 0 deletions
doc/contributions.txt
indra/newview/llexternaleditor.cpp
+16
-2
16 additions, 2 deletions
indra/newview/llexternaleditor.cpp
with
17 additions
and
2 deletions
doc/contributions.txt
+
1
−
0
View file @
551e6a45
...
...
@@ -321,6 +321,7 @@ Cinder Roxley
STORM-1958
STORM-1952
STORM-1951
STORM-1949
STORM-2035
STORM-2036
STORM-2037
...
...
This diff is collapsed.
Click to expand it.
indra/newview/llexternaleditor.cpp
+
16
−
2
View file @
551e6a45
...
...
@@ -43,8 +43,22 @@ LLExternalEditor::EErrorCode LLExternalEditor::setCommand(const std::string& env
std
::
string
cmd
=
findCommand
(
env_var
,
override
);
if
(
cmd
.
empty
())
{
LL_WARNS
()
<<
"Editor command is empty or not set"
<<
LL_ENDL
;
return
EC_NOT_SPECIFIED
;
LL_INFOS
()
<<
"Editor command is empty or not set. Falling back on generic open handler."
<<
LL_ENDL
;
#if LL_WINDOWS
std
::
string
comspec
(
getenv
(
"COMSPEC"
));
comspec
.
append
(
" /C START
\"
%s
\"
"
);
cmd
=
findCommand
(
LLStringUtil
::
null
,
comspec
);
#elif LL_DARWIN
cmd
=
findCommand
(
LLStringUtil
::
null
,
"/usr/bin/open
\"
%s
\"
"
);
#elif LL_LINUX
// xdg-open might not actually be installed on all distros, but it's our best bet.
cmd
=
findCommand
(
LLStringUtil
::
null
,
"/usr/bin/xdg-open
\"
%s
\"
"
);
#endif
if
(
cmd
.
empty
())
{
LL_WARNS
()
<<
"Failed to find generic open handler: "
<<
cmd
<<
LL_ENDL
;
return
EC_NOT_SPECIFIED
;
}
}
string_vec_t
tokens
;
...
...
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