feat(ags gsr): add 'Edit in kdenlive' option
All checks were successful
Discord / discord commits (push) Has been skipped
All checks were successful
Discord / discord commits (push) Has been skipped
This commit is contained in:
parent
18d42f406e
commit
38019afcef
1 changed files with 9 additions and 1 deletions
|
@ -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);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue