Skip to content

Hints for debugging

Karim Vergnes edited this page Jan 14, 2025 · 4 revisions

Looking Glass

In GNOME the Looking Glass can be opened with Alt+F2 and typing lg and ENTER.

Getting PaperWM's internal state

From GNOME 45 onwards, you can get to PaperWM's internal state using:

PaperWM = await import("file://" + global.userdatadir + "/extensions/[email protected]/imports.js")

From there you have access to most other modules. You can also import other files if necessary.

In GNOME 44 and older you have to use:

PaperWM = Main.extensionManager.lookup("[email protected]").imports

The available modules are slightly different. Prior to GNOME 45 we did not have an imports.js module. The .imports refers to the importer which has all files in the PaperWM directory available.

Clone this wiki locally