Move all drivers to /usr/lib/drivers

This makes them harder to accidentally run them from the shell, which
would not work. In the future this may also allow embedding the driver
config in the driver executable itself without having to look at all
non-driver executables too.
This commit is contained in:
bjorn3
2024-06-16 17:02:14 +02:00
parent a9bb925f25
commit 4ffed8096d
4 changed files with 18 additions and 8 deletions
+5
View File
@@ -28,6 +28,11 @@ impl DriverHandler {
let mut args = args.iter();
if let Some(program) = args.next() {
let program = if program.starts_with('/') {
program.to_owned()
} else {
"/usr/lib/drivers/".to_owned() + program
};
let mut command = Command::new(program);
for arg in args {
if arg.starts_with("$") {