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 Fri 24 Oct 2014, 17:29
All times are UTC - 4
 Forum index » Taking the Puppy out for a walk » Suggestions
Rewriting pup_event in C
Moderators: Flash, Ian, JohnMurga
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 7 of 7 Posts_count   Goto page: Previous 1, 2, 3, 4, 5, 6, 7
Author Message
akash_rawal

Joined: 25 Aug 2010
Posts: 232
Location: ISM Dhanbad, Jharkhand, India

PostPosted: Fri 08 Jun 2012, 11:23    Post_subject:  

Well I got the problem.

The problem was that environment variable LD_LIBRARY_PATH wasn't set.

And what's worse is that pup-volume-monitor uses LD_LIBRARY_PATH to search for its plugins. That means the cdrom plugin simply wasn't loaded!

The fix is simple then. Just set LD_LIBRARY_PATH variable.

Edited_time_total
Back to top
View user's profile Send_private_message 
akash_rawal

Joined: 25 Aug 2010
Posts: 232
Location: ISM Dhanbad, Jharkhand, India

PostPosted: Fri 08 Jun 2012, 11:31    Post_subject:  

jamesbond wrote:

Quote:
Optical drives are detected by iterating over each device in /sys/block, testing each device whether it's an optical drive.
How do you do the test?


The mechanism is translated from /lib/udev/rules.d/50-udev-default.rules.
Code:

# cdrom
SUBSYSTEM=="block", KERNEL=="sr[0-9]*", SYMLINK+="scd%n", GROUP="cdrom"
SUBSYSTEM=="scsi_generic", SUBSYSTEMS=="scsi", ATTRS{type}=="4|5", GROUP="cdrom"
KERNEL=="pktcdvd[0-9]*", GROUP="cdrom"
KERNEL=="pktcdvd", GROUP="cdrom"

Code:

gboolean pup_drive_test_optical(struct udev_device *dev)
{
   gboolean result = FALSE;

   if (strstr(udev_device_get_sysname(dev), "sr")
       || strstr(udev_device_get_sysname(dev), "pktcdvd"))
      result = TRUE;

   if (!result)
   {
      const gchar *type = udev_device_get_sysattr_value(dev, "device/type");
      if (type)
      {
         if ((type[0] == '4') || (type[0] == '5'))
            result = TRUE;
      }
   }

   return result;
}
Back to top
View user's profile Send_private_message 
akash_rawal

Joined: 25 Aug 2010
Posts: 232
Location: ISM Dhanbad, Jharkhand, India

PostPosted: Fri 08 Jun 2012, 13:35    Post_subject:  

I hope now pup-volume-monitor is stable enough to move it to additional software section?

http://www.murga-linux.com/puppy/viewtopic.php?t=78881
Back to top
View user's profile Send_private_message 
akash_rawal

Joined: 25 Aug 2010
Posts: 232
Location: ISM Dhanbad, Jharkhand, India

PostPosted: Tue 19 Jun 2012, 15:04    Post_subject:  

I quickly wrote an implementation for desktop drive icons for desktops that do not support them. It uses GIO.



It can be configured to stick to a corner of the screen, align icons vertically, change font colors, etc. Settings take effect immediately.

Icons look like rox-filer icons for a while, till you move mouse pointer over it.

Could anyone package this, I myself am running out of time. My school will be reopening next week and I have to rush through my holiday hw for summer vacations before that. Sad
desktop_drive_icons-0.0.1.tar.gz
Description 
gz

 Download 
Filename  desktop_drive_icons-0.0.1.tar.gz 
Filesize  124.61 KB 
Downloaded  302 Time(s) 
Back to top
View user's profile Send_private_message 
recobayu


Joined: 15 Sep 2010
Posts: 113
Location: indonesia

PostPosted: Tue 03 Jul 2012, 09:15    Post_subject:  

this is very nice drive icon. the labels are very helpful because i prefer look at the label than sda3 or sda4 like that. can anyone compile that in lupu, dpup, or slacko? i tried to compile myself but didn't result anything.
Code:
./configure
make
make install

but nothing happened.
thank you.
Back to top
View user's profile Send_private_message 
akash_rawal

Joined: 25 Aug 2010
Posts: 232
Location: ISM Dhanbad, Jharkhand, India

PostPosted: Tue 03 Jul 2012, 09:31    Post_subject:  

Run this:
Code:
desktop_drive_icons

after installing.
Back to top
View user's profile Send_private_message 
MinHundHettePerro


Joined: 05 Feb 2009
Posts: 853
Location: SE

PostPosted: Thu 15 Nov 2012, 19:22    Post_subject:  

Hello Smile!

I must be a bit on the daft side Embarassed

However I compile and run it, I get
Code:
# desktop_drive_icons
** Message: Config file not found
^C
#
Where should I put the what-named config file - and what should the contents be?

Cheers /MHHP

_________________
Celeron 2.8 GHz, 1 GB, i82845, many ptns, modes 12, 13
Dual Xeon 3.2 GHz, 1 GB, nvidia quadro nvs 285

Slackos & 214X, ... and Q6xx
Nämen, vaf.... ln -s /dev/null MHHP
Back to top
View user's profile Send_private_message 
akash_rawal

Joined: 25 Aug 2010
Posts: 232
Location: ISM Dhanbad, Jharkhand, India

PostPosted: Fri 16 Nov 2012, 07:15    Post_subject:  

MinHundHettePerro wrote:
Hello Smile!

I must be a bit on the daft side Embarassed

However I compile and run it, I get
Code:
# desktop_drive_icons
** Message: Config file not found
^C
#
Where should I put the what-named config file - and what should the contents be?

Cheers /MHHP


You don't need to worry about it at all. Desktop-drivre-icons will automatically generate it when you change a setting.
Back to top
View user's profile Send_private_message 
akash_rawal

Joined: 25 Aug 2010
Posts: 232
Location: ISM Dhanbad, Jharkhand, India

PostPosted: Fri 16 Nov 2012, 07:23    Post_subject:  

Desktop-drive-icons has been moved here : http://www.murga-linux.com/puppy/viewtopic.php?p=632792#632792.
Back to top
View user's profile Send_private_message 
Display_posts:   Sort by:   
Page 7 of 7 Posts_count   Goto page: Previous 1, 2, 3, 4, 5, 6, 7
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Taking the Puppy out for a walk » Suggestions
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.0658s ][ Queries: 13 (0.0057s) ][ GZIP on ]