dot/.local/share/gnome-shell/extensions/launch-new-instance@gnome-s.../extension.js

16 lines
382 B
JavaScript

/* exported enable disable */
const AppDisplay = imports.ui.appDisplay;
let _activateOriginal = null;
function enable() {
_activateOriginal = AppDisplay.AppIcon.prototype.activate;
AppDisplay.AppIcon.prototype.activate = function () {
_activateOriginal.call(this, 2);
};
}
function disable() {
AppDisplay.AppIcon.prototype.activate = _activateOriginal;
}