回答編集履歴
1
記述が足りなかったため
test
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
chrome
|
1
|
+
chromeが壊れているかもしれないというエラーに変更になりました。
|
2
2
|
|
3
3
|
```AWS
|
4
4
|
|
@@ -36,4 +36,148 @@
|
|
36
36
|
|
37
37
|
(The process started from chrome location /opt/google/chrome/google-chrome is no longer running, so ChromeDriver is assuming that Chrome has crashed.)
|
38
38
|
|
39
|
+
|
40
|
+
|
39
41
|
```
|
42
|
+
|
43
|
+
|
44
|
+
|
45
|
+
尚、/opt/google/chromeは以下の通りです。
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
```AWS
|
50
|
+
|
51
|
+
ec2-user:/opt/google/chrome $ ls
|
52
|
+
|
53
|
+
chrome lib product_logo_16.png swiftshader
|
54
|
+
|
55
|
+
chrome_100_percent.pak locales product_logo_24.png v8_context_snapshot.bin
|
56
|
+
|
57
|
+
chrome_200_percent.pak MEIPreload product_logo_256.png WidevineCdm
|
58
|
+
|
59
|
+
chrome-sandbox nacl_helper product_logo_32.png xdg-mime
|
60
|
+
|
61
|
+
default-app-block nacl_helper_bootstrap product_logo_32.xpm xdg-settings
|
62
|
+
|
63
|
+
default_apps nacl_irt_x86_64.nexe product_logo_48.png
|
64
|
+
|
65
|
+
google-chrome natives_blob.bin product_logo_64.png
|
66
|
+
|
67
|
+
icudtl.dat product_logo_128.png resources.pak
|
68
|
+
|
69
|
+
```
|
70
|
+
|
71
|
+
|
72
|
+
|
73
|
+
また、vi google-chromeは以下のようになっています。
|
74
|
+
|
75
|
+
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
```vim
|
80
|
+
|
81
|
+
#!/bin/bash
|
82
|
+
|
83
|
+
#
|
84
|
+
|
85
|
+
# Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
86
|
+
|
87
|
+
# Use of this source code is governed by a BSD-style license that can be
|
88
|
+
|
89
|
+
# found in the LICENSE file.
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
# Let the wrapped binary know that it has been run through the wrapper.
|
94
|
+
|
95
|
+
export CHROME_WRAPPER="`readlink -f "$0"`"
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
HERE="`dirname "$CHROME_WRAPPER"`"
|
100
|
+
|
101
|
+
|
102
|
+
|
103
|
+
# We include some xdg utilities next to the binary, and we want to prefer them
|
104
|
+
|
105
|
+
# over the system versions when we know the system versions are very old. We
|
106
|
+
|
107
|
+
# detect whether the system xdg utilities are sufficiently new to be likely to
|
108
|
+
|
109
|
+
# work for us by looking for xdg-settings. If we find it, we leave $PATH alone,
|
110
|
+
|
111
|
+
# so that the system xdg utilities (including any distro patches) will be used.
|
112
|
+
|
113
|
+
if ! which xdg-settings &> /dev/null; then
|
114
|
+
|
115
|
+
# Old xdg utilities. Prepend $HERE to $PATH to use ours instead.
|
116
|
+
|
117
|
+
export PATH="$HERE:$PATH"
|
118
|
+
|
119
|
+
else
|
120
|
+
|
121
|
+
# Use system xdg utilities. But first create mimeapps.list if it doesn't
|
122
|
+
|
123
|
+
# exist; some systems have bugs in xdg-mime that make it fail without it.
|
124
|
+
|
125
|
+
xdg_app_dir="${XDG_DATA_HOME:-$HOME/.local/share/applications}"
|
126
|
+
|
127
|
+
mkdir -p "$xdg_app_dir"
|
128
|
+
|
129
|
+
[ -f "$xdg_app_dir/mimeapps.list" ] || touch "$xdg_app_dir/mimeapps.list"
|
130
|
+
|
131
|
+
fi
|
132
|
+
|
133
|
+
|
134
|
+
|
135
|
+
# Always use our versions of ffmpeg libs.
|
136
|
+
|
137
|
+
# This also makes RPMs find the compatibly-named library symlinks.
|
138
|
+
|
139
|
+
if [[ -n "$LD_LIBRARY_PATH" ]]; then
|
140
|
+
|
141
|
+
LD_LIBRARY_PATH="$HERE:$HERE/lib:$LD_LIBRARY_PATH"
|
142
|
+
|
143
|
+
else
|
144
|
+
|
145
|
+
LD_LIBRARY_PATH="$HERE:$HERE/lib"
|
146
|
+
|
147
|
+
fi
|
148
|
+
|
149
|
+
export LD_LIBRARY_PATH
|
150
|
+
|
151
|
+
|
152
|
+
|
153
|
+
export CHROME_VERSION_EXTRA="stable"
|
154
|
+
|
155
|
+
|
156
|
+
|
157
|
+
# We don't want bug-buddy intercepting our crashes. http://crbug.com/24120
|
158
|
+
|
159
|
+
export GNOME_DISABLE_CRASH_DIALOG=SET_BY_GOOGLE_CHROME
|
160
|
+
|
161
|
+
|
162
|
+
|
163
|
+
# Sanitize std{in,out,err} because they'll be shared with untrusted child
|
164
|
+
|
165
|
+
# processes (http://crbug.com/376567).
|
166
|
+
|
167
|
+
exec < /dev/null
|
168
|
+
|
169
|
+
exec > >(exec cat)
|
170
|
+
|
171
|
+
exec 2> >(exec cat >&2)
|
172
|
+
|
173
|
+
|
174
|
+
|
175
|
+
# Note: exec -a below is a bashism.
|
176
|
+
|
177
|
+
exec -a "$0" "$HERE/chrome" "$@"
|
178
|
+
|
179
|
+
```
|
180
|
+
|
181
|
+
|
182
|
+
|
183
|
+
引き続き、よろしくお願いします。
|