Tipscorner

Tipps und Tricks für verschiedene Dinge im Leben

Archive for Januar 2019

Launch Chromium with API Keys on Mac OS X

leave a comment »


Here is my work-around:-
1)mv /Applications/Chromium.app/Contents/MacOS/Chromium /Applications/Chromium.app/Contents/MacOS/Chromium_bin

2)I have created a script and placed it inside /Applications/Chromium.app/Contents/MacOS/ with name Chromium, recheck in getinfo once:-

#!/bin/bash

# Set up environment variables
export GOOGLE_API_KEY=""
export GOOGLE_DEFAULT_CLIENT_ID=""
export GOOGLE_DEFAULT_CLIENT_SECRET=""

# Launch Chromium
/Applications/Chromium.app/Contents/MacOS/Chromium_bin
  1. Give it +x permission

It is working fine.

  1. I have made another script in icloud to restore above setting after every version update

Source: https://gist.github.com/cvan/44a6d60457b20133191bd7b104f9dcc4#gistcomment-2013573

 

Written by MrT

Januar 3, 2019 at 13:54

Veröffentlicht in Betriebssystem

Tagged with ,