Skip to content

Update for GNOME 42 #7

@josephlbarnett

Description

@josephlbarnett

Extension doesn't work in gnome 42.beta. Manually adding 42 to the metadata.json still fails, complaining that this._actions.get(...) is undefined:

Some code accessed the property 'LOCK_ORIENTATION_ACTION_ID' on the module 'systemActions'. That property was defined with 'let' or 'const' inside the module. This was previously supported, but is not correct according to the ES6 standard. Any symbols to be exported from a module must be defined with 'var'.  The property access will work as previously for the time being, but please fix your code anyway.
JS ERROR: Extension screen-autorotate@kosmospredanie.yandex.ru: TypeError: this._actions.get(...) is undefined
                                           _override_system_actions/this._system_actions._updateOrientationLock@/home/.../.local/share/gnome-shell/extensions/screen-autorotate@kosmospredanie.yandex.ru/extension.js:123:27
                                           _override_system_actions@/home/.../.local/share/gnome-shell/extensions/screen-autorotate@kosmospredanie.yandex.ru/extension.js:126:30
                                           ScreenAutorotate@/home/.../.local/share/gnome-shell/extensions/screen-autorotate@kosmospredanie.yandex.ru/extension.js:106:14
                                           enable@/home/.../.local/share/gnome-shell/extensions/screen-autorotate@kosmospredanie.yandex.ru/extension.js:193:21
                                           _callExtensionEnable@resource:///org/gnome/shell/ui/extensionSystem.js:182:32
                                           loadExtension@resource:///org/gnome/shell/ui/extensionSystem.js:364:26
                                           _loadExtensions/<@resource:///org/gnome/shell/ui/extensionSystem.js:620:18
                                           collectFromDatadirs@resource:///org/gnome/shell/misc/fileUtils.js:27:28
                                           _loadExtensions@resource:///org/gnome/shell/ui/extensionSystem.js:595:19
                                           _enableAllExtensions@resource:///org/gnome/shell/ui/extensionSystem.js:626:18
                                           _sessionUpdated@resource:///org/gnome/shell/ui/extensionSystem.js:646:14
                                           init@resource:///org/gnome/shell/ui/extensionSystem.js:56:14
                                           _initializeUI@resource:///org/gnome/shell/ui/main.js:293:22
                                           start@resource:///org/gnome/shell/ui/main.js:170:5
                                           @resource:///org/gnome/shell/ui/init.js:6:17

(I thought this extension might not be needed in 42 based on gnome gitlab chatter, but still not seeing rotation work on my device)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions