truncated icon text port-5 xfce

Get help with XFCE specific problems
Post Reply
donald
Full of knowledge
Full of knowledge
Posts: 1967
Joined: 17 Jun 2013, 13:17
Distribution: Porteus 3.2.2 XFCE 32bit
Location: Germany

truncated icon text port-5 xfce

Post#1 by donald » 21 Oct 2022, 19:55

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

Rapha_
Samurai
Samurai
Posts: 150
Joined: 12 Jun 2021, 21:59
Distribution: Xfce 4.12 - 5.rc3 - x86_64
Location: France

truncated icon text port-5 xfce

Post#2 by Rapha_ » 23 Oct 2022, 13:08

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.

Rapha_
Samurai
Samurai
Posts: 150
Joined: 12 Jun 2021, 21:59
Distribution: Xfce 4.12 - 5.rc3 - x86_64
Location: France

truncated icon text port-5 xfce

Post#3 by Rapha_ » 23 Oct 2022, 13:29

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

.

donald
Full of knowledge
Full of knowledge
Posts: 1967
Joined: 17 Jun 2013, 13:17
Distribution: Porteus 3.2.2 XFCE 32bit
Location: Germany

truncated icon text port-5 xfce

Post#4 by donald » 23 Oct 2022, 15:24

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. :)

User avatar
Rava
Contributor
Contributor
Posts: 4414
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.0 x86_64 + 4.0 i586
Location: Forests of Germany

truncated icon text port-5 xfce

Post#5 by Rava » 24 Oct 2022, 00:08

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. :)
Cheers!
Yours Rava

Post Reply