Wallpaper generation extension for GNOME Shell, inspired by jizhi For support, please report any issues via the homepage link below.
Note: Binary files aren't shown on the web site. To see all files, please download the extension zipfile.
Version | Status |
---|---|
34 | Active |
33 | Active |
32 | Active |
31 | Active |
30 | Active |
29 | Active |
28 | Rejected |
27 | Inactive |
26 | Rejected |
25 | Rejected |
24 | Rejected |
23 | Active |
22 | Active |
21 | Active |
20 | Rejected |
19 | Active |
18 | Inactive |
17 | Active |
16 | Inactive |
15 | Inactive |
14 | Inactive |
13 | Inactive |
12 | Inactive |
11 | Inactive |
10 | Inactive |
9 | Inactive |
8 | Inactive |
7 | Active |
6 | Inactive |
5 | Rejected |
4 | Rejected |
3 | Inactive |
2 | Rejected |
1 | Rejected |
Please move line 13, 19, 20 (extension.js ) to enable(): https://gjs.guide/extensions/review-guidelines/review-guidelines.html#only-use-init-for-initialization
Does it matter?
Yes. The global scope is the same as init() function.
`init() is called by GNOME Shell when your extension is loaded, not when it is enabled. Your extension MUST NOT create any objects, connect any signals, add any main loop sources or modify GNOME Shell here.` As is pointed, creating objects is not allowed there. Also, what is the big difference between them? `As a rule, init() should ONLY be used for operations that can only be done once and can not be undone. Most extensions should only use init() to initialize Gettext translations:` Aren't these outside lines only executed once, so they are executed multiple times when the extension is enabled?
If you are creating something in global scope or `init()` function, it will be called once (will be cached). enable() will be called when the extension is getting enabled. Lock mode disables the extension. Unlock enables the extension but the global scope and init() won't be called again.
Yes, I just wish these setting objects working as global variables.The signals should be disconnected in disable(). Keeping them alive doesn't take up resources that many.