Page 5 of 5

Posted: Fri 08 Jun 2012, 15:23
by akash_rawal
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.

Posted: Fri 08 Jun 2012, 15:31
by akash_rawal
jamesbond wrote:
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: Select all

# 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: Select all

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;
}

Posted: Fri 08 Jun 2012, 17:35
by akash_rawal
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

Posted: Tue 19 Jun 2012, 19:04
by akash_rawal
I quickly wrote an implementation for desktop drive icons for desktops that do not support them. It uses GIO.

Image

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

Posted: Tue 03 Jul 2012, 13:15
by recobayu
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: Select all

./configure
make
make install
but nothing happened.
thank you.

Posted: Tue 03 Jul 2012, 13:31
by akash_rawal
Run this:

Code: Select all

desktop_drive_icons
after installing.

Posted: Thu 15 Nov 2012, 23:22
by MinHundHettePerro
Hello :)!

I must be a bit on the daft side :oops:

However I compile and run it, I get

Code: Select all

# 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

Posted: Fri 16 Nov 2012, 11:15
by akash_rawal
MinHundHettePerro wrote:Hello :)!

I must be a bit on the daft side :oops:

However I compile and run it, I get

Code: Select all

# 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.

Posted: Fri 16 Nov 2012, 11:23
by akash_rawal
Desktop-drive-icons has been moved here : http://www.murga-linux.com/puppy/viewto ... 792#632792.