added possiblity to execute custom command when starting a screenshare

This commit is contained in:
2021-08-07 00:06:28 +04:00
parent be73f23811
commit c5bed3afa2
6 changed files with 40 additions and 11 deletions

View File

@@ -23,6 +23,7 @@ type Config struct {
BarrierHostName string
Rooms string
IPAddress string
BinaryToExecute string
}
// Exists reports whether the named file or directory exists.
@@ -61,6 +62,7 @@ func SetDefaults() error {
defaults["BarrierHostName"] = name
defaults["Rooms"] = defaultPath + "room.json"
defaults["IPAddress"] = "0.0.0.0"
defaults["BinaryToExecute"] = "/home/akilan/.local/share/Steam/steamapps/common/X-Plane 11"
//Paths to search for config file
configPaths = append(configPaths, defaultPath)