Skip to content

Commit

Permalink
Skip gio-2-iterate example for older GJS versions
Browse files Browse the repository at this point in the history
  • Loading branch information
JumpLink committed Nov 14, 2024
1 parent 7b244d3 commit 9b08f74
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions examples/gio-2-iterate/main.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
import GLib from 'gi://GLib'
import Gio from 'gi://Gio'
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 nullable nick and blurb in GObject.ParamSpec, skipping example');
System.exit(0);
}

Gio._promisify(Gio.File.prototype, 'enumerate_children_async', 'enumerate_children_finish')

Expand Down

0 comments on commit 9b08f74

Please sign in to comment.