Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
mycard
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
syntax_j
mycard
Commits
5a2e9e54
Commit
5a2e9e54
authored
Aug 09, 2021
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
maotama on linux is problematic
parent
6c7ac56b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
app/apps.service.ts
app/apps.service.ts
+1
-1
app/network.component.html
app/network.component.html
+1
-1
No files found.
app/apps.service.ts
View file @
5a2e9e54
...
...
@@ -878,7 +878,7 @@ export class AppsService {
async
network
(
app
:
App
,
server
:
any
)
{
if
(
!
this
.
maotama
)
{
this
.
maotama
=
new
Promise
((
resolve
,
reject
)
=>
{
let
child
=
sudo
.
fork
(
'
maotama
'
,
[],
{
stdio
:
[
'
inherit
'
,
'
inherit
'
,
'
inherit
'
,
'
ipc
'
]});
let
child
=
(
process
.
platform
===
'
linux
'
?
child_process
:
sudo
).
fork
(
'
maotama
'
,
[],
{
stdio
:
[
'
inherit
'
,
'
inherit
'
,
'
inherit
'
,
'
ipc
'
]});
// it's very shit of Linux electron-sudo
child
.
once
(
'
message
'
,
()
=>
resolve
(
child
));
child
.
once
(
'
error
'
,
reject
);
child
.
once
(
'
exit
'
,
reject
);
...
...
app/network.component.html
View file @
5a2e9e54
...
...
@@ -18,4 +18,4 @@
</div>
</div>
</div>
</div>
\ No newline at end of file
</div>
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