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:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user