Skip to content

Commit

Permalink
Skip gio-2-action-entries example for older GJS versions
Browse files Browse the repository at this point in the history
  • Loading branch information
JumpLink committed Nov 13, 2024
1 parent 6d9973e commit 7b244d3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions examples/gio-2-action-entries/main.ts
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down

0 comments on commit 7b244d3

Please sign in to comment.