How to show drive/partition label ? (Solved)

For discussions about programming, programming questions/advice, and projects that don't really have anything to do with Puppy.
Post Reply
Message
Author
User avatar
LazY Puppy
Posts: 1934
Joined: Fri 21 Nov 2014, 18:14
Location: Germany

How to show drive/partition label ? (Solved)

#1 Post by LazY Puppy »

Anyone knows how to show drive/partition label in the tool tip texts of drive icons at desktop?
Last edited by LazY Puppy on Tue 15 Mar 2016, 22:24, edited 1 time in total.
RSH

"you only wanted to work your Puppies in German", "you are a separatist in that you want Germany to secede from Europe" (musher0) :lol:

No, but I gave my old drum kit away for free to a music store collecting instruments for refugees! :wink:

User avatar
LazY Puppy
Posts: 1934
Joined: Fri 21 Nov 2014, 18:14
Location: Germany

#2 Post 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.
RSH

"you only wanted to work your Puppies in German", "you are a separatist in that you want Germany to secede from Europe" (musher0) :lol:

No, but I gave my old drum kit away for free to a music store collecting instruments for refugees! :wink:

Post Reply