2023-05-25 14:31:22 -04:00
|
|
|
import {DBusService} from './dbusService.js';
|
|
|
|
import {ScreencastService} from './screencastService.js';
|
2020-04-23 14:46:44 -04:00
|
|
|
|
2023-05-25 14:31:22 -04:00
|
|
|
/** @returns {void} */
|
|
|
|
export async function main() {
|
2022-10-19 06:43:29 -04:00
|
|
|
if (!ScreencastService.canScreencast())
|
2022-05-18 10:43:45 -04:00
|
|
|
return;
|
|
|
|
|
2020-04-23 14:46:44 -04:00
|
|
|
const service = new DBusService(
|
|
|
|
'org.gnome.Shell.Screencast',
|
|
|
|
new ScreencastService());
|
2023-05-25 14:31:22 -04:00
|
|
|
await service.runAsync();
|
2020-04-23 14:46:44 -04:00
|
|
|
}
|