feat(ags gsr): add 'Edit in kdenlive' option
All checks were successful
Discord / discord commits (push) Has been skipped

This commit is contained in:
matt1432 2024-07-24 12:04:50 -04:00
parent 18d42f406e
commit 38019afcef

View file

@ -28,7 +28,7 @@ class GSR extends Service {
ICON_NAME, ICON_NAME,
'Replay Saved', 'Replay Saved',
`Saved to ${path}`, `Saved to ${path}`,
['folder', 'Open Folder', 'video', 'Open Video'], ['folder', 'Open Folder', 'video', 'Open Video', 'kdenlive', 'Edit in kdenlive'],
{}, {},
Notifications.popupTimeout, Notifications.popupTimeout,
); );
@ -46,6 +46,14 @@ class GSR extends Service {
else if (actionId === 'video') { else if (actionId === 'video') {
execAsync(['xdg-open', path]).catch(print); execAsync(['xdg-open', path]).catch(print);
} }
else if (actionId === 'kdenlive') {
execAsync([
'bash',
'-c',
`kdenlive -i ${path}`,
]).catch(print);
}
}, },
); );
}, },