Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kicad-source-mirror
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
kicad-source-mirror
Commits
96f43520
Commit
96f43520
authored
Jan 26, 2012
by
marco.
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MacOSX: Handling exec
parent
7eb1a136
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
gestfich.cpp
common/gestfich.cpp
+12
-3
No files found.
common/gestfich.cpp
View file @
96f43520
...
...
@@ -39,7 +39,7 @@
#include <wx/mimetype.h>
#include <wx/filename.h>
#include <wx/dir.h>
/* List of default paths used to locate help files and KiCad library files.
*
...
...
@@ -420,6 +420,15 @@ int ExecuteFile( wxWindow* frame, const wxString& ExecFile, const wxString& para
FullFileName
=
FindKicadFile
(
ExecFile
);
#ifdef __WXMAC__
if
(
wxFileExists
(
FullFileName
)
||
wxDir
::
Exists
(
FullFileName
)
)
{
ProcessExecute
(
wxT
(
"open -a "
)
+
ExecFile
+
wxT
(
" "
)
+
param
);
}
else
{
ProcessExecute
(
wxT
(
"open "
)
+
param
);
}
return
0
;
#else
if
(
wxFileExists
(
FullFileName
)
)
{
if
(
!
param
.
IsEmpty
()
)
...
...
@@ -428,7 +437,7 @@ int ExecuteFile( wxWindow* frame, const wxString& ExecFile, const wxString& para
ProcessExecute
(
FullFileName
);
return
0
;
}
#endif
wxString
msg
;
msg
.
Printf
(
_
(
"Command <%s> could not found"
),
GetChars
(
FullFileName
)
);
DisplayError
(
frame
,
msg
,
20
);
...
...
@@ -523,7 +532,7 @@ wxString& EDA_APP::GetEditorName()
// If there is no EDITOR variable set, try the desktop default
if
(
!
wxGetEnv
(
wxT
(
"EDITOR"
),
&
editorname
))
{
#ifdef __WX
OSX
__
#ifdef __WX
MAC
__
editorname
=
"/usr/bin/open"
;
#elif __WXX11__
editorname
=
"/usr/bin/xdg-open"
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment