XFCE desktop icon text

I love light weight desktop environment. Fluxbox was used to be top of my list when I only have desktop computers. Then I give up, to make it simple, it is because Fluxbox is not laptop and Chinese friendly. And I don’t want to spend too much time to find out how to get it fix.

So the next best in my list is XFCE at the moment. Firstly, light weight, although nothing close to Fluxbox. And most things are work out of the box.

The only slight annoying thing is: “Desktop icon text would not display in full”.
Default settings in XFCE only display the text in a single line and only the fist few characters.
To fix it first create/edit the file:

vim ~/.gtkrc-2.0

Then add the following lines:

style "xfdesktop-icon-view" {
   # 0 = show line in multiple lines
   # 1 = show line only in one line
   XfdesktopIconView::ellipsize-icon-labels = 0

   XfdesktopIconVIew::cell-spacing = 6
   XfdesktopIconView::cell-padding = 6

   # Ratio between icon and text area size,
   # In this example the text area is 5 time wider then the icon image
   XfdesktopIconView::cell-text-width-proportion = 5
widget_class "*XfdesktopIconView*" style "xfdesktop-icon-view"

I could not confirm, but I think all those value above have to be integer in order to work.
Of course you can try thing out.

And to load the new settings, you don’t have to log out and log in again, just run this command

killall xfdesktop