[v3 linux] bail early if bad dbus message

Need at least two elements to decide what theme it is and if it is
a theme message at all.

Addresses #3040
This commit is contained in:
Travis McLane 2023-11-08 22:38:04 -06:00
commit 27c4c5e6f6

View file

@ -153,6 +153,9 @@ func (m *linuxApp) monitorThemeChanges() {
conn.Signal(c)
getTheme := func(body []interface{}) (string, bool) {
if len(body) < 2 {
return "", false
}
if body[0].(string) != "org.gnome.desktop.interface" {
return "", false
}