Fix: Remove full path /bin/bash in exec command (#953)

caused screen recording on nixos to fail

Co-authored-by: John Bonini <bonini.physics@gmail.com>
This commit is contained in:
John Bonini
2025-05-25 19:34:14 +00:00
committed by GitHub
parent c203ffe80f
commit 4303c1cb71

View File

@@ -20,7 +20,7 @@ export const getRecordingPath = (): string => options.menus.dashboard.recording.
*/ */
export const executeCommand = async (command: string): Promise<void> => { export const executeCommand = async (command: string): Promise<void> => {
try { try {
await execAsync(`/bin/bash -c '${command}'`); await execAsync(`bash -c '${command}'`);
} catch (err) { } catch (err) {
console.error('Command failed:', command); console.error('Command failed:', command);
console.error('Error:', err); console.error('Error:', err);