Skip to content

Commit

Permalink
gestures: Fix EXEC actions not completing.
Browse files Browse the repository at this point in the history
  • Loading branch information
mtwebster committed Jun 26, 2023
1 parent 21f963d commit ae4523d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/ui/gestures/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ var make_action = (settings, definition, device) => {
return new MediaAction(definition, device, threshold);
}

if (action.startsWith("EXEC:")) {
if (definition.action.startsWith("EXEC:")) {
return new ExecAction(definition, device, threshold);
}
}
Expand Down Expand Up @@ -292,7 +292,7 @@ var ExecAction = class extends BaseAction {
return;
}

const real_action = action.replace("EXEC:", "");
const real_action = this.definition.action.replace("EXEC:", "");
try {
GLib.spawn_command_line_async(real_action);
} catch (e) {
Expand Down

0 comments on commit ae4523d

Please sign in to comment.