simple ags launcher

This commit is contained in:
do butterflies cry? 2024-11-11 12:29:10 +10:00
parent 8da00fdba9
commit fe1a8564f2
186 changed files with 24097 additions and 335 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;
}
}