[GB.FORM]
* BUG: Fix icon theme search for LXDE and XFCE. git-svn-id: svn://localhost/gambas/trunk@4987 867c0c6c-44f3-4631-809d-bfa615b0a4ec
This commit is contained in:
parent
4911532f96
commit
d0069fd324
1 changed files with 2 additions and 1 deletions
|
@ -297,7 +297,7 @@ Static Private Sub InitTheme()
|
|||
If Not sTheme Then
|
||||
aFind = FindInConfigFile("~/.config/xfce4/xfconf/xfce-perchannel-xml/xsettings.xml", "*<property name=\"IconThemeName\" type=\"string\" value=\"*\"/>*")
|
||||
If Not aFind Then FindInConfigFile("~/.config/xfce4/mcs_settings/gtk.xml", "*<property name=\"IconThemeName\" type=\"string\" value=\"*\"/>*")
|
||||
If aFind Then sTheme = Trim(aFind[2])
|
||||
If aFind Then sTheme = Trim(aFind[1])
|
||||
Endif
|
||||
|
||||
If sTheme Then GetAllThemePath("gnome", ["~/.icons", "/usr/share/icons"], sTheme)
|
||||
|
@ -310,6 +310,7 @@ Static Private Sub InitTheme()
|
|||
If Not sTheme Then
|
||||
aFind = FindInConfigFile("~/.config/lxde/config", "sNet/IconThemeName=*")
|
||||
If Not aFind Then aFind = FindInConfigFile("~/.config/lxsession/LXDE/desktop.conf", "sNet/IconThemeName=*")
|
||||
If Not aFind Then aFind = FindInConfigFile("/usr/share/lxde/config", "sNet/IconThemeName=*")
|
||||
If Not aFind Then aFind = FindInConfigFile("/etc/xdg/lxsession/LXDE/desktop.conf", "sNet/IconThemeName=*")
|
||||
If aFind Then sTheme = Trim(aFind[0])
|
||||
Endif
|
||||
|
|
Loading…
Reference in a new issue