Skip to content

Commit 876a187

Browse files
committed
fix(LED): use valid dbus path for LED devices
1 parent 04658fa commit 876a187

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/input/source/led.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,6 @@ impl LedDevice {
9999
}
100100
/// Returns the DBus path for an [LedDevice] from a device id (E.g. leds://input7__numlock)
101101
pub fn get_dbus_path(id: String) -> String {
102-
let name = id.replace(':', "_");
102+
let name = id.replace(':', "_").replace("-", "_");
103103
format!("{}/{}", BUS_SOURCES_PREFIX, name)
104104
}

0 commit comments

Comments
 (0)