KDE USB hotplug (Ruby/KDE)
System Software
Score 68%
Description:

Hotpluging for USB mass storage devices in KDE. It does not depend on HAL or DBUS.
The program is currently experimental, but it works on my macheene.
Requirements: Hotplug, linux 2.6.0, & Ruby/KDE bindings.
Last changelog:

13 years ago

Repackaged properly, fixed first bug:S

blacksheep2011

12 years ago

i got a problem with this programm....the programm doesnt connect the x server. And the programm cant find the "dev" file.
here you can see the log file i hope you can help me thx! -------->


usbHotplug.rb: cannot connect to X server :0.0
Exec:"/sys/devices/pci0000:00/0000:00:07.2/usb1/1-1/1-1:1.0/block/dev" ::"/mnt/ipod1"
/root/kdeUsbHotplug-0.0.0.2/usbHotplug.rb:104:in `readlines': No such file or directory - /sys/devices/pci0000:00/0000:00:07.2/usb1/1-1/1-1:1.0/block/dev (Errno::ENOENT)
from /root/kdeUsbHotplug-0.0.0.2/usbHotplug.rb:104
from /root/kdeUsbHotplug-0.0.0.2/usbHotplug.rb:101:in `open'
from /root/kdeUsbHotplug-0.0.0.2/usbHotplug.rb:101

Report

eightofnine

13 years ago

Sorry, don't know what happened to the rest of my posting above, or why what has survived has been posted twice. Anyway, I was trying to say that the code block that begins with the snippet that remains above appears to be truncating prodId to 4 chars when it is already less than 4 chars long, but padding it to 4 chars when it is already longer than 4!!

Report

C

freqmodn

13 years ago

descUSB.rb:
Sorry, a typo it should be like if(vendId.length>4).
if(prodId.length>4)

I will upload a updated version ASAP.

Report

eightofnine

13 years ago

I've never programmed in Ruby but this code (from descUSB.rb) looks wrong to me:

if(prodId.length!=4)
if(prodId.length

Report

eightofnine

13 years ago

I've never programmed in Ruby but this code (from descUSB.rb) looks wrong to me:

if(prodId.length!=4)
if(prodId.length

Report

13 years ago

Repackaged properly, fixed first bug:S

product-maker 15 38

File (click to download) Version Description Filetype Packagetype License Downloads Date Filesize OCS-Install DL
Details
version
0.0.0.2
updated Oct 17 2004
added Oct 17 2004
downloads today
0
page views today 0