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 Tue 02 Sep 2014, 15:11
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
[SOLVED] Drive Icons - USB only
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [2 Posts]  
Author Message
moonskin

Joined: 18 Oct 2008
Posts: 38
Location: Wollongong, Australia

PostPosted: Mon 06 May 2013, 04:07    Post subject:  [SOLVED] Drive Icons - USB only
Subject description: Any way to show only USB drive icons on the desktop
 

We are using a locked down Puppy for our student netbooks in a high school (in Australia). We've got most of what we need worked out including authorised logon to an Enterprise grade Aruba wireless network.

The question I have (a nice "to do" but not a deal breaker) is whether it is possible to hide the drive icon for the HDD but show an icon for any USB drive that is inserted?

I've started having a good look at pup_event_frontend_d where I "think" the changes would have to be made but much of it is way beyond my skill level.

I suspect the answer may be in create_icon_func().

Any help would be appreciated.

Regards
Graham

Last edited by moonskin on Mon 06 May 2013, 06:57; edited 1 time in total
Back to top
View user's profile Send private message 
moonskin

Joined: 18 Oct 2008
Posts: 38
Location: Wollongong, Australia

PostPosted: Mon 06 May 2013, 06:56    Post subject:  [SOLVED] Drive Icons - USB only  

I found a solution that worked for me. I don't know if it has any other repercussions but I'll put it here. (so that you good folk don't need to waste time on it Smile )

In the add_pinboard_func() section I've enclosed the code that adds the XML to the pinboard in a test for a usbdrive

The original code is (line 325)
Code:
     
    echo "<?xml version=\"1.0\"?>
   <env:Envelope xmlns:env=\"http://www.w3.org/2001/12/soap-envelope\">
    <env:Body xmlns=\"http://rox.sourceforge.net/SOAP/ROX-Filer\">
     <PinboardAdd>
      <Path>/root/.pup_event/drive_${ONEDRVNAME}</Path>
      <X>${COORD_X}</X>
      <Y>${COORD_Y}</Y>
      <Label>${cutONEDRVNAME}</Label>
      <Args>${DRV_CATEGORY} ${FSTYPE}</Args>
     </PinboardAdd>
    </env:Body>
   </env:Envelope>"  | rox -R


Insert before the "echo ..." statement
Code:
  if [ "$DRV_CATEGORY" = "usbdrv" ]
then 


Insert a line after "| rox-R" (originally line 336) with
Code:
fi


Regards
Graham
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 » House Training » Users ( For the regulars )
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.0442s ][ Queries: 12 (0.0053s) ][ GZIP on ]