From 7b244d338ff94d66a4675e1c5a8344c83d4e9913 Mon Sep 17 00:00:00 2001 From: Pascal Garber Date: Wed, 13 Nov 2024 17:43:02 +0100 Subject: [PATCH] Skip gio-2-action-entries example for older GJS versions --- examples/gio-2-action-entries/main.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/examples/gio-2-action-entries/main.ts b/examples/gio-2-action-entries/main.ts index 5e598d6b..a95dfc3f 100644 --- a/examples/gio-2-action-entries/main.ts +++ b/examples/gio-2-action-entries/main.ts @@ -1,6 +1,14 @@ import Gio from 'gi://Gio'; import GLib from 'gi://GLib'; import GObject from 'gi://GObject'; +import System from 'system'; + +console.log('GJS Version:', System.version); + +if(System.version < 18200) { + console.log('GJS version 1.82.0 or higher is required for this example, skipping example'); + System.exit(0); +} export class ExampleApplication extends Gio.Application { static {