Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Mon 25 Jul 2016, 06:19
All times are UTC - 4
 Forum index » Off-Topic Area » Programming
How to show drive/partition label ? (Solved)
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [2 Posts]  
Author Message
LazY Puppy


Joined: 21 Nov 2014
Posts: 1205
Location: Germany

PostPosted: Tue 15 Mar 2016, 17:22    Post subject:  How to show drive/partition label ? (Solved)  

Anyone knows how to show drive/partition label in the tool tip texts of drive icons at desktop?
_________________
RSH

T.O.P.L.E.S.S. - the Multi-Language Puppy Linux Wrapper.

Zivilcourage bringt nichts als Ärger ein!

Last edited by LazY Puppy on Tue 15 Mar 2016, 18:24; edited 1 time in total
Back to top
View user's profile Send private message 
LazY Puppy


Joined: 21 Nov 2014
Posts: 1205
Location: Germany

PostPosted: Tue 15 Mar 2016, 18:24    Post subject:  

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

T.O.P.L.E.S.S. - the Multi-Language Puppy Linux Wrapper.

Zivilcourage bringt nichts als Ärger ein!
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [2 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Off-Topic Area » Programming
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0233s ][ Queries: 11 (0.0027s) ][ GZIP on ]