| 
									
										
										
										
											2021-12-29 12:26:46 +00:00
										 |  |  | #!/bin/bash | 
					
						
							|  |  |  | # | 
					
						
							|  |  |  | # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 
					
						
							|  |  |  | # Use of this source code is governed by a BSD-style license that can be | 
					
						
							|  |  |  | # found in the LICENSE file. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | # Let the wrapped binary know that it has been run through the wrapper. | 
					
						
							|  |  |  | export CHROME_WRAPPER="`readlink -f "$0"`" | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | HERE="`dirname "$CHROME_WRAPPER"`" | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-08-15 12:20:59 +00:00
										 |  |  | # Always use our versions of ffmpeg libs. | 
					
						
							|  |  |  | # This also makes RPMs find the compatibly-named library symlinks. | 
					
						
							| 
									
										
										
										
											2022-08-22 11:00:10 +00:00
										 |  |  | export LD_LIBRARY_PATH="$HERE${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}" | 
					
						
							| 
									
										
										
										
											2022-08-15 12:20:59 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-01-10 21:35:57 +00:00
										 |  |  | export CHROME_VERSION_EXTRA="beta" | 
					
						
							| 
									
										
										
										
											2021-12-29 12:26:46 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | # We don't want bug-buddy intercepting our crashes. http://crbug.com/24120 | 
					
						
							|  |  |  | export GNOME_DISABLE_CRASH_DIALOG=SET_BY_GOOGLE_CHROME | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-08-15 12:20:59 +00:00
										 |  |  | # Allow root usage | 
					
						
							| 
									
										
										
										
											2022-08-22 11:00:10 +00:00
										 |  |  | no_sandbox= | 
					
						
							| 
									
										
										
										
											2022-08-15 12:20:59 +00:00
										 |  |  | if [ "`id -u`" == "0" ]; then | 
					
						
							| 
									
										
										
										
											2022-08-22 11:00:10 +00:00
										 |  |  |   no_sandbox=--no-sandbox | 
					
						
							| 
									
										
										
										
											2022-08-15 12:20:59 +00:00
										 |  |  | fi | 
					
						
							| 
									
										
										
										
											2021-12-29 12:26:46 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | # Sanitize std{in,out,err} because they'll be shared with untrusted child | 
					
						
							|  |  |  | # processes (http://crbug.com/376567). | 
					
						
							|  |  |  | exec < /dev/null | 
					
						
							|  |  |  | exec > >(exec cat) | 
					
						
							|  |  |  | exec 2> >(exec cat >&2) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | # Note: exec -a below is a bashism. | 
					
						
							| 
									
										
										
										
											2022-08-22 11:00:10 +00:00
										 |  |  | exec -a "$0" "$HERE/chrome" $no_sandbox "$@" |