-
-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This was embarrassing. Used the uuid to look up the extension (wrong way
to get the extension; should pass it to where it's needed), and I used the extension to get the uuid. D'oh.
- Loading branch information
Showing
1 changed file
with
1 addition
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,8 +25,6 @@ | |
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
*/ | ||
|
||
import {Extension} from 'resource:///org/gnome/shell/extensions/extension.js'; | ||
|
||
// This method can be used to write a message to GNOME Shell's log. This is enhances | ||
// the standard log() functionality by prepending the extension's name and the location | ||
// where the message was logged. As the extensions name is part of the location, you | ||
|
@@ -42,13 +40,10 @@ export function debug(message) { | |
|
||
// Find the index of the extension directory (e.g. [email protected]) | ||
// in the stack entry. We do not want to print the entire absolute file path. | ||
let ExtensionObj = Extension.lookupByUUID('[email protected]'); | ||
|
||
const extensionRoot = stack[0].indexOf(ExtensionObj.metadata.uuid); | ||
const extensionRoot = stack[0].indexOf('[email protected]'); | ||
|
||
log('[' + stack[0].slice(extensionRoot) + '] ' + message); | ||
log(new Error().stack); | ||
|
||
} | ||
|
||
/** | ||
|