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:
parent
1d3992467d
commit
aab93798f1
1 changed files with 11 additions and 2 deletions
|
@ -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
|
||||
GetAllThemePath("gnome", $aRoots, sTheme)
|
||||
Endif
|
||||
|
||||
|
|
Loading…
Reference in a new issue