Hi, in Xfce 4.6, to get the icon theme you're using, you must parse the file "~ / .config/xfce4/xfconf/xfce-perchannel-xml/xsettings.xml. " I will provide the Case "xfce".
Case "xfce" > > Try hFile = Open > "~/.config/xfce4/xfconf/xfce-perchannel-xml/xsettings.xml" > If Not Error Then > While Not Eof(hFile) > Line Input #hFile, sLig > If sLig Like "*<property name=\"IconThemeName\" type=\"string\" > value=\"*\"/>*" Then > Try sTheme = Trim(Scan(sLig, "*<property name=\"IconThemeName\" > type=\"string\" value=\"*\"/>*")[1]) > Break > Endif > Wend > Close #hFile > Endif > > If sTheme Then > GetAllThemePath("gnome", ["~/.icons", "/usr/share/icons"], sTheme) > 'GetAllThemePath("gnome", "/usr/X11R6/share/icons", sTheme) > Endif > > AddPath("gnome", "/usr/share/icons/gnome") Hope to add more of desktops enviroments support in Stock class. Sorry for my english ^ ^ Regards, -- Federico Leite ############################################## Areida Developer ------------------------------------------------------------------------------ Free Software Download: Index, Search & Analyze Logs and other IT data in Real-Time with Splunk. Collect, index and harness all the fast moving IT data generated by your applications, servers and devices whether physical, virtual or in the cloud. Deliver compliance at lower cost and gain new business insights. http://p.sf.net/sfu/splunk-dev2dev _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user