This commit is contained in:
Lilith 2024-06-12 19:16:15 +02:00
parent f8b7ebdbfe
commit 0d61c14991
Signed by: lilith
GPG key ID: 8712A0F317C37175
173 changed files with 22474 additions and 5 deletions

View file

@ -0,0 +1,14 @@
const { Gio, GLib, Gtk } = imports.gi;
export function fileExists(filePath) {
let file = Gio.File.new_for_path(filePath);
return file.query_exists(null);
}
export function expandTilde(path) {
if (path.startsWith('~')) {
return GLib.get_home_dir() + path.slice(1);
} else {
return path;
}
}