OFS = msg_fs ? msg_fs : "|"
Kfs = key_fs ? key_fs : ":"
Module = "khatus_actuate_device_add_to_automount"
+ # Typically some file manager (thunar, pcmanfm, etc.), but can be whatever.
+ Execute_On_Mount = Execute_On_Mount ? Execute_On_Mount : ""
}
$1 == "OK" && \
sub("^Mounted " path_dev " at ", "", path_mnt)
sub("\.$", "", path_mnt)
alert("low", "successfully-mounted", path_dev " to " path_mnt)
+ if (Execute_On_Mount) {
+ system(Execute_On_Mount " '" path_mnt "'")
+ }
} else {
alert("hi", "unexpected-success-line", line)
}
>(stdbuf -o L ./bin/khatus_monitor_energy) \
>(stdbuf -o L ./bin/khatus_monitor_errors) \
>(stdbuf -o L ./bin/khatus_monitor_devices) \
- >(stdbuf -o L ./bin/khatus_actuate_device_add_to_automount) \
+ >(stdbuf -o L ./bin/khatus_actuate_device_add_to_automount \
+ -v Execute_On_Mount=thunar \
+ ) \
> /dev/null