blob: d2d24712777638f3246de491a2035b66d89d178e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
diff -ur a/atom.sh b/atom.sh
--- a/atom.sh 2018-06-03 20:13:22.329490169 +0800
+++ b/atom.sh 2018-06-03 20:22:19.346842103 +0800
@@ -69,7 +69,7 @@
ATOM_PATH="/usr/lib/atom/atom"
if [ $EXPECT_OUTPUT ]; then
- "$ATOM_PATH" --executed-from="$(pwd)" --pid=$$ "$@"
+ "$ATOM_PATH" --executed-from="$(pwd)" --pid=$$ --enable-transparent-visuals --disable-gpu "$@"
ATOM_EXIT=$?
if [ ${ATOM_EXIT} -eq 0 ] && [ -n "${EXIT_CODE_OVERRIDE}" ]; then
exit "${EXIT_CODE_OVERRIDE}"
@@ -78,7 +78,7 @@
fi
else
(
- nohup "$ATOM_PATH" --executed-from="$(pwd)" --pid=$$ "$@" > "$ATOM_HOME/nohup.out" 2>&1
+ nohup "$ATOM_PATH" --executed-from="$(pwd)" --pid=$$ --enable-transparent-visuals --disable-gpu "$@" > "$ATOM_HOME/nohup.out" 2>&1
if [ $? -ne 0 ]; then
cat "$ATOM_HOME/nohup.out"
exit $?
diff -ur a/src/main-process/atom-window.js b/src/main-process/atom-window.js
--- a/src/main-process/atom-window.js 2018-05-19 06:49:28.000000000 +0800
+++ b/src/main-process/atom-window.js 2018-06-03 20:18:09.254908066 +0800
@@ -33,8 +33,10 @@
this.closedPromise = new Promise(resolve => {
this.resolveClosedPromise = resolve;
});
const options = {
+ frame: false,
+ transparent: true,
show: false,
title: getAppName(),
tabbingIdentifier: 'atom',
|