/usr/share/gnome-shell/extensions/dash-to-dock@micxgx.gmail.com/extension.js is in gnome-shell-extension-dashtodock 55-4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 | // -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*-
const Me = imports.misc.extensionUtils.getCurrentExtension();
const Convenience = Me.imports.convenience;
const Docking = Me.imports.docking;
const Main = imports.ui.main;
let settings;
let dock;
let oldDash;
function init() {
}
function enable() {
settings = Convenience.getSettings('org.gnome.shell.extensions.dash-to-dock');
dock = new Docking.DockedDash(settings);
// Pretend I'm the dash: meant to make appgrd swarm animation come from the
// right position of the appShowButton.
oldDash = Main.overview._dash;
Main.overview._dash = dock.dash;
bindSettingsChanges();
}
function disable() {
dock.destroy();
settings.run_dispose();
Main.overview._dash = oldDash;
dock=null;
settings = null;
oldDash=null;
}
function bindSettingsChanges() {
// This settings change require a full reload.
// It's easier to just reload the extension when the dock position changes
// rather than working out all changes to the differen containers.
settings.connect('changed::dock-position', function() {
disable();
enable();
});
}
|