//createStartParameters returns absolute electron path and list of arguments to be passed on electron run call.
createStartParameters returns absolute electron path and list of arguments to be passed on electron run call.
// createStartParameters returns absolute electron path and list of arguments to be passed on electron run call .
func (gbw *BrowserWindow) createStartParameters() (electronPath string, arguments []string, err error) {
	defer errz.Recover(&err)
	ex, err := os.Executable()
	errz.Fatal(err)
	exPath := filepath.Dir(ex)
	if runtime.GOOS == "darwin" {
		electronPath, err = filepath.Abs(filepath.Join(exPath, "electronjs", "gotron-browser-window.app/Contents/MacOS/gotron-browser-window"))
	} else {
		electronPath, err = filepath.Abs(filepath.Join(exPath, "electronjs", "gotron-browser-window"))
	}
	errz.Fatal(err)
	appPath := ""
	logger.Debug().Msgf(appPath)
	configString, err := json.Marshal(gbw.WindowOptions)
	errz.Fatal(err)
	arguments = []string{appPath, strconv.Itoa(gbw.Port), string(configString)}
	return
}
func ( gbw * BrowserWindow ) createStartParameters ( ) ( electronPath string , arguments [ ] string , err error ) { defer errz . Recover ( & err ) ex , err := os . Executable ( ) errz . Fatal ( err ) exPath := filepath . Dir ( ex ) if runtime . GOOS == " " { electronPath , err = filepath . Abs ( filepath . Join ( exPath , " " , " " ) ) } else { electronPath , err = filepath . Abs ( filepath . Join ( exPath , " " , " " ) ) } errz . Fatal ( err ) appPath := " " logger . Debug ( ) . Msgf ( appPath ) configString , err := json . Marshal ( gbw . WindowOptions ) errz . Fatal ( err ) arguments = [ ] string { appPath , strconv . Itoa ( gbw . Port ) , string ( configString ) } return }
createStartParameters returns absolute electron path and list of arguments to be passed on electron run call.
createStartParameters returns absolute electron path and list of arguments to be passed on electron run call .
//TODO: test if this call works properly