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 25 Nov 2014, 18:20
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 Posts_count  
Author Message
moonskin

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

PostPosted: Mon 06 May 2013, 04:07    Post_subject:  [SOLVED] Drive Icons - USB only
Sub_title: 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

Edited_time_total
Back to top
View user's profile Send_private_message 
moonskin

Joined: 18 Oct 2008
Posts: 40
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:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » House Training » Users ( For the regulars )
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


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