Skip to content

Commit

Permalink
[v3 linux] bail early if bad dbus message
Browse files Browse the repository at this point in the history
Need at least two elements to decide what theme it is and if it is
a theme message at all.

Addresses #3040
  • Loading branch information
tmclane committed Nov 9, 2023
1 parent 6f197f6 commit 27c4c5e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions v3/pkg/application/application_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 27c4c5e

Please sign in to comment.