Page 1 of 1

truncated icon text port-5 xfce

Posted: 21 Oct 2022, 19:55
by donald
on desktop all my (e.g.) drive icons text is truncated - I don't like it to be this way.
A .gtkrc-2.0 file does not work anymore - it is now gtk-3 and changes have to be made
via a css file.
If you, like me, don't want truncated icon text give this a try in ~/.config/gtk-3.0/gtk.css
Create /gtk-3.0/gtk.css if it doesn't exist.

Code: Select all

* {
   -XfdesktopIconView-ellipsize-icon-labels: 0;
}
logout/in is required to see the effect.

It solved it for me but it is not perfect.It doesn't look nice if the file names are way too long.

Image

truncated icon text port-5 xfce

Posted: 23 Oct 2022, 13:08
by Rapha_
Hi !
donald wrote:
21 Oct 2022, 19:55
It solved it for me but it is not perfect.It doesn't look nice if the file names are way too long.

Yes, but you have given the whole solution here :
Porteus 5.0 RC2 bug reports (Post by donald #78912)

:good:

donald wrote:
04 Oct 2020, 03:01
However, here is my current gtk.css and screenshot

Code: Select all

/* icon text not truncated */
XfdesktopIconView.view {
   -XfdesktopIconView-ellipsize-icon-labels: 0;
   -XfdesktopIconView-cell-spacing:0;
   -XfdesktopIconView-cell-padding:0;
   -XfdesktopIconView-cell-text-width-proportion: 2.5;
}

Image


This controls the width of the icon text field:
-XfdesktopIconView-cell-text-width-proportion: 2.5;
Less than 2.5 the text field returns to 1 line

You can restart the desktop with:

Code: Select all

xfdesktop -Q && sleep 1 && xfdesktop &
if you want to experiment with various values.

truncated icon text port-5 xfce

Posted: 23 Oct 2022, 13:29
by Rapha_
For those who use Xfce 4.12 for Porteus 5 : Xfce 4.12 for Porteus 5 final release
Or Porteus 4

The version is GTK 2 , as you can see with :

Code: Select all

xfdesktop -V

The hiden file to edit is .gtkrc-2.0 in guest folder is different :

/home/guest/.gtkrc-2.0

Code: Select all


style "xfdesktop-icon-view" {



XfdesktopIconView::cell-spacing = 0
XfdesktopIconView::cell-padding = 0

XfdesktopIconView::cell-text-width-proportion = 2.5
XfdesktopIconView::ellipsize-icon-labels = 0

}

widget_class "*XfdesktopIconView*" style "xfdesktop-icon-view"


More informations on xfdesktop - Advanced Options (GTK 2) :
https://docs.xfce.org/xfce/xfdesktop/advanced

.

truncated icon text port-5 xfce

Posted: 23 Oct 2022, 15:24
by donald
Hi Rapha
Rapha_ wrote:
23 Oct 2022, 13:08
Yes, but you have given the whole solution here :
Porteus 5.0 RC2 bug reports (Post by donald #78912)
...yep I did...
I'm 65 and apparently my memory is slipping a bit.

EDIT
...well, my body is 65, but I'm not sure my mindset is. :)

truncated icon text port-5 xfce

Posted: 24 Oct 2022, 00:08
by Rava
System:

Code: Select all

guest@porteus:~$ cat /etc/porteus/00*
001-core.xzm:20220723
002-xorg.xzm:20220723
002-xtra.xzm:20220630
003-xfce.xzm:20220925
aka XFCE 4.16.

Just created

Code: Select all

guest@porteus:~$ cat ~/.config/gtk-3.0/gtk.css
* {
   -XfdesktopIconView-ellipsize-icon-labels: 0;
}
and saved in in my 992-rootcopy settings module.
At next bootup I will see if that does the trick. :)