The time now is Tue 24 Apr 2018, 03:11
All times are UTC - 4 |
Author |
Message |
akash_rawal
Joined: 25 Aug 2010 Posts: 232 Location: ISM Dhanbad, Jharkhand, India
|
Posted: 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.
Last edited by akash_rawal on Fri 08 Jun 2012, 11:33; edited 1 time in total
|
Back to top
|
|
 |
akash_rawal
Joined: 25 Aug 2010 Posts: 232 Location: ISM Dhanbad, Jharkhand, India
|
Posted: 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
|
|
 |
akash_rawal
Joined: 25 Aug 2010 Posts: 232 Location: ISM Dhanbad, Jharkhand, India
|
Posted: 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
|
|
 |
akash_rawal
Joined: 25 Aug 2010 Posts: 232 Location: ISM Dhanbad, Jharkhand, India
|
Posted: 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.
Description |
|

Download |
Filename |
desktop_drive_icons-0.0.1.tar.gz |
Filesize |
124.61 KB |
Downloaded |
424 Time(s) |
|
Back to top
|
|
 |
recobayu

Joined: 15 Sep 2010 Posts: 293 Location: indonesia
|
Posted: 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
|
|
 |
akash_rawal
Joined: 25 Aug 2010 Posts: 232 Location: ISM Dhanbad, Jharkhand, India
|
Posted: Tue 03 Jul 2012, 09:31 Post subject:
|
|
Run this:
Code: | desktop_drive_icons |
after installing.
|
Back to top
|
|
 |
MinHundHettePerro

Joined: 05 Feb 2009 Posts: 855 Location: SE
|
Posted: Thu 15 Nov 2012, 19:22 Post subject:
|
|
Hello !
I must be a bit on the daft side
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
|
|
 |
akash_rawal
Joined: 25 Aug 2010 Posts: 232 Location: ISM Dhanbad, Jharkhand, India
|
Posted: Fri 16 Nov 2012, 07:15 Post subject:
|
|
MinHundHettePerro wrote: | Hello !
I must be a bit on the daft side
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
|
|
 |
akash_rawal
Joined: 25 Aug 2010 Posts: 232 Location: ISM Dhanbad, Jharkhand, India
|
Posted: 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
|
|
 |
|
|
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
|