mirror of
https://gitlab.com/thebiblelover7/dotfiles.git
synced 2025-12-14 04:03:50 +00:00
initial commit
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
'use strict';
|
||||
|
||||
const Gio = imports.gi.Gio;
|
||||
const GLib = imports.gi.GLib;
|
||||
const Gtk = imports.gi.Gtk;
|
||||
|
||||
// Bootstrap
|
||||
const Extension = imports.misc.extensionUtils.getCurrentExtension();
|
||||
const Utils = Extension.imports.shell.utils;
|
||||
|
||||
function init() {
|
||||
Utils.installService();
|
||||
}
|
||||
|
||||
function buildPrefsWidget() {
|
||||
// Destroy the window once the mainloop starts
|
||||
const widget = new Gtk.Box();
|
||||
|
||||
GLib.idle_add(GLib.PRIORITY_DEFAULT_IDLE, () => {
|
||||
widget.get_root().destroy();
|
||||
return false;
|
||||
});
|
||||
|
||||
Gio.Subprocess.new([`${Extension.path}/gsconnect-preferences`], 0);
|
||||
|
||||
return widget;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user