Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Element defaults to white theme on startup #18038

Closed
Kommynct opened this issue Jul 17, 2021 · 0 comments
Closed

Element defaults to white theme on startup #18038

Kommynct opened this issue Jul 17, 2021 · 0 comments
Labels

Comments

@Kommynct
Copy link

Kommynct commented Jul 17, 2021

image

Description

Locale change happening on startup every time, causing the theme to not stay set, always resetting to white when restarting element.

Steps to reproduce

I don't know what exactly i've done, because I can't fix it either, but, it appears that it's trying to set the language to en-us when it should be en_US

Describe how what happens differs from what you expected.

No update_base_url is defined: auto update is disabled
Fetching translation json for locale: en_EN
Changing application language to en-us
Fetching translation json for locale: en-us
Could not fetch translation json for locale: 'en-us' Error: Cannot find module './i18n/strings/en-us.json'
Require stack:
- /usr/lib/element/app.asar/src/language-helper.js
- /usr/lib/element/app.asar/src/tray.js
- /usr/lib/element/app.asar/src/electron-main.js
- /usr/lib/electron12/resources/default_app.asar/main.js
- 
    at Module._resolveFilename (internal/modules/cjs/loader.js:887:15)
    at Function.n._resolveFilename (electron/js2c/browser_init.js:261:1128)
    at Module._load (internal/modules/cjs/loader.js:732:27)
    at Function.f._load (electron/js2c/asar_bundle.js:5:12913)
    at Module.require (internal/modules/cjs/loader.js:959:19)
    at require (internal/modules/cjs/helpers.js:88:18)
    at AppLocalization.fetchTranslationJson (/usr/lib/element/app.asar/src/language-helper.js:83:20)
    at /usr/lib/element/app.asar/src/language-helper.js:102:39
    at Array.forEach (<anonymous>)
    at AppLocalization.setAppLocale (/usr/lib/element/app.asar/src/language-helper.js:101:17) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/usr/lib/element/app.asar/src/language-helper.js',
    '/usr/lib/element/app.asar/src/tray.js',
    '/usr/lib/element/app.asar/src/electron-main.js',
    '/usr/lib/electron12/resources/default_app.asar/main.js',
    undefined
  ]
}
Resetting the UI components after locale change
Resetting the UI components after locale change
Changing application language to en-us
Fetching translation json for locale: en-us
Could not fetch translation json for locale: 'en-us' Error: Cannot find module './i18n/strings/en-us.json'
Require stack:
- /usr/lib/element/app.asar/src/language-helper.js
- /usr/lib/element/app.asar/src/tray.js
- /usr/lib/element/app.asar/src/electron-main.js
- /usr/lib/electron12/resources/default_app.asar/main.js
- 
    at Module._resolveFilename (internal/modules/cjs/loader.js:887:15)
    at Function.n._resolveFilename (electron/js2c/browser_init.js:261:1128)
    at Module._load (internal/modules/cjs/loader.js:732:27)
    at Function.f._load (electron/js2c/asar_bundle.js:5:12913)
    at Module.require (internal/modules/cjs/loader.js:959:19)
    at require (internal/modules/cjs/helpers.js:88:18)
    at AppLocalization.fetchTranslationJson (/usr/lib/element/app.asar/src/language-helper.js:83:20)
    at /usr/lib/element/app.asar/src/language-helper.js:102:39
    at Array.forEach (<anonymous>)
    at AppLocalization.setAppLocale (/usr/lib/element/app.asar/src/language-helper.js:101:17) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/usr/lib/element/app.asar/src/language-helper.js',
    '/usr/lib/element/app.asar/src/tray.js',
    '/usr/lib/element/app.asar/src/electron-main.js',
    '/usr/lib/electron12/resources/default_app.asar/main.js',
    undefined
  ]
}
Resetting the UI components after locale change
Error getting the event index passphrase out of the secret store [Error: The name is not activatable]

Version information

i've tried latest arch linux package, element on the web, and it seems to be account-wide.

  • Platform: linux
  • web (in-browser) or desktop? both the desktop app and firefox 90 were tested

For the web app:

  • OS: Arch
  • URL: develop.element.io / app.element.io / somewhere else? If a private server, what version of Element Web?

For the desktop app:

  • OS: arch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant