<NME> screenshotPortalApp.ts
<BEF> ADDFILE
<MSG> Merge pull request #168 from OttoAllmendinger/gnome41-portal-screenshot

Use freedesktop.portal.Screenshot
<DFF> @@ -0,0 +1,14 @@
+import * as GLib from '@imports/GLib-2.0';
+
+import { getServiceProxy, portalScreenshot } from './extension/screenshotPortal';
+
+if (window['ARGV']) {
+  const loop = GLib.MainLoop.new(null, false);
+  (async () => {
+    await portalScreenshot(await getServiceProxy('./res/'));
+  })()
+    .then(() => console.log('done'))
+    .catch((err) => console.error(err))
+    .finally(() => loop.quit());
+  loop.run();
+}

Merge pull request #168 from OttoAllmendinger/gnome41-portal-screenshot