Version: (using Devel) OS: Linux Installed from: Compiled sources The path /usr/share/hwdata/usb.ids is hardcoded as usb.ids device database in usbdb.cpp. If it doesn't exist, datadir/kcmusb/usb.ids is used. With the attached patch, the initial usb.ids path is passed via cmake or /usr/share/hwdata if it wasn't passed to cmake.
Created attachment 28563 [details] kinfocenter - usb.ids patch
Created attachment 28564 [details] kinfocenter - usb.ids patch (improved) The previous patch only installed the usb.ids file into the system if KDE_USBIDS_DIR wasn't passed to cmake. This version adds an extra DISABLE_USBIDS_INSTALL which must be passed to CMake in order to not install it.
Helge, is there anything wrong with this patch? I'll gladly improve it, but it would be nice to have this in KDE 4.2. One less patch for me to maintain in Exherbo! -Ingmar
David: I'll look at this this week, I have a slightly better patch that i'll post for review, and commit afterwards. I had to delay this since packaging 4.4.0 took up all my time.
Ingmar: Thanks, no rush.. I am trying to get KInfoCenter moved to kdebase-workspace at the moment and KDE SC 4.5 is miles away :)
Any news on an updated patch for KDE 4.5?
*** Bug 246361 has been marked as a duplicate of this bug. ***
bug #246361 isn't solved till now, or ?
Well, I'm unsure whether bug #246361 is really a dup if this my my issue is now solved.
Having a hard coded link to usb.ids when it can technically be in different places is still valid. I do need to get around to fixing this one.
Why is this useful though?
Closing in absence of a concrete use case.