Chrome extension with extra settings JSON

'User made' tutorials related to Porteus Kiosk edition.
Official kiosk documentation can be find here: http://porteus-kiosk.org/documentation.html
snikolaidis
Ronin
Ronin
Posts: 1
Joined: 15 Sep 2022, 19:25
Distribution: Porteus Kiosk/Server

Chrome extension with extra settings JSON

Post#1 by snikolaidis » 15 Sep 2022, 19:31

Hello so I'm stuck banging my head against a wall. I have successfully deployed the extension via browsersettings but now this extension needs an extra config json and I can for the life of me figure out how to add it via the extrasettings flag

Code: Select all

{
	"config": {
		"Value": {
			"ux": {
				"extensionIcon": "data:image/png;base64,",
				"theme": "",
				"popup": {
					"maxHistoryItems": 5,
					"showConnectionStatus": true,
					"showViewTestAlert": true,
					"showRecentMessages": true,
					"showViewLogs": true,
					"showViewAbout": true,
					"customTheme": {
						"--popup__main-font-color": "#000000",
						"--popup__main-bg-color": "#ffffff",
						"--popup__icon-bar-color": "#f0f8ff",
						"--popup__default-icon-color": "#000000",
						"--popup__connected-icon-color": "#008000",
						"--popup__disconnected-icon-color": "#ff0000",
						"--popup__alert-icon-color": "#ffa500",
						"--popup__active-history-color": "#ff0000",
						"--popup__recent-history-color": "#008000",
						"--popup__item-hover-color": "#f0f8ff"
					}
				}
			},
			"logs": {
				"level": "WARNING"
			},
			"device": {
				"clientName": "DA_Chr1",
				"descResolvable": "[DesktopAlert] OS: {OS} Browser: {Browser} IP: {IP}",
				"nameResolvable": "AD_{UserEmail}_{DateTimeStamp}",
				"muid1Resolvable": "{UUID}",
				"muid2Resolvable": "Chrome",
				"checkinVariableResolvable": ""
			},
			"server": {
				"protocol": "",
				"port": 80,
				"hostname": "",
				"requestTimeoutMillis": 30000,
				"allowUnsignedHtmlTemplates": false,
				"authorizationCode": "",
				"versionCheckInterval": 14400000
			},
			"alerts": {
				"allowUserRightClickToClose": true,
				"alwaysShowActiveOnLaunch": true,
				"forceAlwaysOnTop": false
			},
			"extension": {
				"applicationDisplayName": "",
				"aboutApplicationTitle": "",
				"aboutApplicationText": ""
			}
		}
	}
}
these are the extra settings json with sensitive values stripped

thank you in advance!!!