Fixed notification flag to xpra profile

master
xSmurf 10 years ago
parent 82d96c2648
commit fd5de9e133

@ -56,7 +56,7 @@ type XServerConf struct {
TrayIcon string `json:"tray_icon"`
WindowIcon string `json:"window_icon"`
EnableTray bool `json:"enable_tray"`
UseDBUS bool `json:"use_dbus"`
EnableNotifications bool `json:"enable_notifications"`
UsePulseAudio bool `json:"use_pulse_audio"`
DisableClipboard bool `json:"disable_clipboard"`
AudioMode AudioMode `json:"audio_mode"`
@ -102,7 +102,7 @@ func NewDefaultProfile() *Profile {
XServer: XServerConf{
Enabled: true,
EnableTray: false,
UseDBUS: false,
EnableNotifications: false,
UsePulseAudio: false,
AudioMode: PROFILE_AUDIO_NONE,
},

@ -36,7 +36,6 @@ var xpraDefaultArgs = []string{
"--system-tray",
"--xsettings",
//"--no-xsettings",
"--notifications",
"--cursors",
"--encoding=rgb",
"--no-pulseaudio",
@ -60,6 +59,11 @@ func getDefaultArgs(config *oz.XServerConf) []string {
args = append(args, "--microphone", "--speaker")
}
if config.EnableNotifications {
args = append(args, "--notifications")
} else {
args = append(args, "--no-notifications")
return args
}

Loading…
Cancel
Save