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

16 lines
382 B
JavaScript
Raw Normal View History

2020-05-11 09:16:27 +00:00
/* 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;
}