Stock: Read the Mate desktop icon theme with the 'dconf' tool, as apparently the mate tool has been deprecated.

[GB.FORM]
* BUG: Stock: Read the Mate desktop icon theme with the 'dconf' tool, as apparently the mate tool has been deprecated.
This commit is contained in:
gambas 2020-12-17 14:26:45 +01:00
parent 1d3992467d
commit aab93798f1

View file

@ -207,10 +207,19 @@ Static Private Sub SearchTheme(sDesktop As String)
Case "mate"
If Not sTheme Then Try Exec ["mateconftool-2", "-g", "/desktop/mate/interface/icon_theme"] To sTheme
If Not sTheme Then
Try Exec ["dconf", "read", "/org/mate/desktop/interface/icon-theme"] To sTheme
If sTheme Then
sTheme = Trim(sTheme)
If sTheme Begins "'" Then sTheme = Chr$(34) & Mid$(sTheme, 2, -1) & Chr$(34)
sTheme = UnQuote(sTheme)
Else
Try Exec ["mateconftool-2", "-g", "/desktop/mate/interface/icon_theme"] To sTheme
sTheme = Trim(sTheme)
Endif
Endif
If sTheme Then
sTheme = Trim(sTheme)
GetAllThemePath("gnome", $aRoots, sTheme)
Endif