if (!$given_go) {
$tmp_fn = $job->save;
my $orig_stat = stat($tmp_fn) or die;
- system "editor", $tmp_fn and die "Editor exited with an error, file kept as $tmp_fn\n";
+ system $BEX::Config::editor_command, $tmp_fn and die "Editor exited with an error, file kept as $tmp_fn\n";
my $new_stat = stat($tmp_fn) or die "File $tmp_fn disappeared under my hands: $!\n";
if ($new_stat->mtime <= $orig_stat->mtime && $new_stat->size == $orig_stat->size) {
unlink $tmp_fn;
# How we run rsync to upload attachments (including options)
our $rsync_command = "rsync -a";
+# Which editor should be used for editing jobs
+our $editor_command = $ENV{"EDITOR"} // "/usr/bin/editor";
+
# Various utility functions
sub parse_machine_list(@);