summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS3
-rw-r--r--lib/mouse.pm2
2 files changed, 4 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index da7a561..2984750 100644
--- a/NEWS
+++ b/NEWS
@@ -2,6 +2,9 @@
o sort monitors in text mode so that "Generic|..." monitors do not appear
in the middle of "Vendor|..." monitors
- use SendCoreEvents instead of AlwaysCore for wacoms
+- mousedrake:
+ o use udev in $PATH instead of /lib/udev/usb_id
+ (need latest udev pkg)
Version 0.41 - 14 December 2007, by Olivier "blino" Blin
diff --git a/lib/mouse.pm b/lib/mouse.pm
index 39e5564..a0814e7 100644
--- a/lib/mouse.pm
+++ b/lib/mouse.pm
@@ -245,7 +245,7 @@ sub write {
sub input_entry_to_device_by_id {
my ($input) = @_;
- my $ID_SERIAL = chomp_(run_program::get_stdout('/lib/udev/usb_id', $input->{sysfs_path}));
+ my $ID_SERIAL = chomp_(run_program::get_stdout('usb_id', $input->{sysfs_path}));
$ID_SERIAL =~ s/[^\w#+\-.:=@_]/_/g; #- udev do a further cleanup, eg: "Wacom_Co.,Ltd._MTE-450" => "Wacom_Co._Ltd._MTE-450". cf ALLOWED_CHARS udev.h
my $sysfs_device = "input/by-id/usb-$ID_SERIAL-event-mouse"; #- from /etc/udev/rules.d/60-persistent-input.rules
if ($::isInstall || -e "/dev/$sysfs_device") {