Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DocExplore
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alexander BURNETT
DocExplore
Commits
7921b0a7
Commit
7921b0a7
authored
6 years ago
by
aburn
Browse files
Options
Downloads
Patches
Plain Diff
Fixed buggy paths on mac
parent
4568a1e9
Branches
Branches containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/org/interreg/docexplore/reader/ReaderElectronApp.java
+18
-18
18 additions, 18 deletions
src/org/interreg/docexplore/reader/ReaderElectronApp.java
with
18 additions
and
18 deletions
src/org/interreg/docexplore/reader/ReaderElectronApp.java
+
18
−
18
View file @
7921b0a7
...
...
@@ -51,27 +51,27 @@ public class ReaderElectronApp extends DocExploreTool
if
(
mode
==
null
)
return
;
File
readerDir
=
new
File
(
DocExploreTool
.
getHomeDir
(),
"reader"
);
File
appDir
=
null
;
if
(
SystemUtils
.
IS_OS_WINDOWS
)
{
appDir
=
new
File
(
DocExploreTool
.
getExecutableDir
(),
"readerapp"
);
if
(!
appDir
.
exists
())
appDir
=
new
File
(
DocExplore
.
readerApp
());
}
else
if
(
SystemUtils
.
IS_OS_MAC_OSX
)
appDir
=
new
File
(
DocExploreTool
.
getExecutableDir
().
getAbsoluteFile
().
getParentFile
(),
"MacOS"
);
else
appDir
=
new
File
(
DocExploreTool
.
getExecutableDir
(),
"readerapp"
);
String
app
=
SystemUtils
.
IS_OS_WINDOWS
?
appDir
.
getAbsolutePath
()+
"/electron.exe"
:
SystemUtils
.
IS_OS_MAC_OSX
?
appDir
.
getAbsolutePath
()+
"/Electron"
:
appDir
.
getAbsolutePath
()+
"/electron"
;
try
try
{
File
readerDir
=
new
File
(
DocExploreTool
.
getHomeDir
(),
"reader"
);
File
appDir
=
null
;
if
(
SystemUtils
.
IS_OS_WINDOWS
)
{
appDir
=
new
File
(
DocExploreTool
.
getExecutableDir
(),
"readerapp"
);
if
(!
appDir
.
exists
())
appDir
=
new
File
(
DocExplore
.
readerApp
());
}
else
if
(
SystemUtils
.
IS_OS_MAC_OSX
)
appDir
=
new
File
(
DocExploreTool
.
getExecutableDir
().
getCanonicalFile
().
getParentFile
(),
"MacOS"
);
else
appDir
=
new
File
(
DocExploreTool
.
getExecutableDir
(),
"readerapp"
);
String
app
=
SystemUtils
.
IS_OS_WINDOWS
?
appDir
.
getCanonicalPath
()+
"/electron.exe"
:
SystemUtils
.
IS_OS_MAC_OSX
?
appDir
.
getCanonicalPath
()+
"/Electron"
:
appDir
.
getCanonicalPath
()+
"/electron"
;
List
<
String
>
eargs
=
new
ArrayList
<
String
>();
eargs
.
add
(
app
);
eargs
.
add
(
readerDir
.
get
Absolute
Path
());
eargs
.
add
(
readerDir
.
get
Canonical
Path
());
if
(
mode
.
length
==
0
)
eargs
.
add
(
"fullscreen"
);
else
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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