Page 1 of 1

How to show drive/partition label ? (Solved)

Posted: Tue 15 Mar 2016, 21:22
by LazY Puppy
Anyone knows how to show drive/partition label in the tool tip texts of drive icons at desktop?

Posted: Tue 15 Mar 2016, 22:24
by LazY Puppy
Ok, solved.

Found it in /usr/local/pup_event/frontend_funcs. Just added the code below (changing ONEDRVNAME) to the appropriate sections in /usr/local/pup_event/frontend_funcs.

Code: Select all

DRIVELABEL=`blkid "/dev/${ONEDRVNAME}" | grep -o "LABEL=.*" | cut -f2 -d '"'`
Now the tooltip-text of my drive/partition icons are showing the drive/partition labels.