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

Signal 7.3.0 Won't launch as Wayland Client #635

Open
sfalken opened this issue Mar 22, 2024 · 6 comments
Open

Signal 7.3.0 Won't launch as Wayland Client #635

sfalken opened this issue Mar 22, 2024 · 6 comments

Comments

@sfalken
Copy link

sfalken commented Mar 22, 2024

When launching org.signal.Signal as a Wayland Client, it fails with the following Error:

[sfalken@mustang ~]$ SIGNAL_USE_WAYLAND=1 flatpak run org.signal.Signal
Debug: Will run signal with the following arguments:
Debug: Additionally, user gave: 
Set Windows Application User Model ID (AUMID) { AUMID: 'org.whispersystems.signal-desktop' }
NODE_ENV production
NODE_CONFIG_DIR /app/Signal/resources/app.asar/config
NODE_CONFIG {}
ALLOW_CONFIG_MUTATIONS undefined
HOSTNAME mustang
NODE_APP_INSTANCE undefined
SUPPRESS_NO_CONFIG_WARNING undefined
SIGNAL_ENABLE_HTTP undefined
userData: /home/sfalken/.var/app/org.signal.Signal/config/Signal
config/get: Successfully read user config file
config/get: Successfully read ephemeral config file
making app single instance
LaunchProcess: failed to execvp:
xdg-settings
LaunchProcess: failed to execvp:
xdg-settings
[2:0322/134755.528752:ERROR:ozone_platform_x11.cc(244)] Missing X server or $DISPLAY
[2:0322/134755.528791:ERROR:env.cc(257)] The platform failed to initialize.  Exiting.

Operating System: openSUSE Kalpa
Flatpak Version: 1.15.6
Desktop: KDE Plasma 6.0.2

@bermeitinger-b
Copy link
Collaborator

While I don't know for sure, could you try setting the variable with e.g. flatseal inside the application?

@sfalken
Copy link
Author

sfalken commented Mar 22, 2024

Setting SIGNAL_USE_WAYLAND=1 in kcm_flatpak results in the flatpak launching, but no window is drawn.

@sfalken
Copy link
Author

sfalken commented Mar 22, 2024

[sfalken@mustang ~]$ flatpak override --user --show org.signal.Signal
[Environment]
SIGNAL_USE_WAYLAND=1
[sfalken@mustang ~]$ flatpak run org.signal.Signal
Debug: Will run signal with the following arguments: --enable-features=WaylandWindowDecorations --ozone-platform=wayland
Debug: Additionally, user gave: 
Set Windows Application User Model ID (AUMID) { AUMID: 'org.whispersystems.signal-desktop' }
NODE_ENV production
NODE_CONFIG_DIR /app/Signal/resources/app.asar/config
NODE_CONFIG {}
ALLOW_CONFIG_MUTATIONS undefined
HOSTNAME mustang
NODE_APP_INSTANCE undefined
SUPPRESS_NO_CONFIG_WARNING undefined
SIGNAL_ENABLE_HTTP undefined
userData: /home/sfalken/.var/app/org.signal.Signal/config/Signal
config/get: Successfully read user config file
config/get: Successfully read ephemeral config file
making app single instance
LaunchProcess: failed to execvp:
xdg-settings
LaunchProcess: failed to execvp:
xdg-settings
{"level":30,"time":"2024-03-22T22:20:53.627Z","msg":"got fast localeOverride setting null"}
{"level":30,"time":"2024-03-22T22:20:53.627Z","msg":"app.ready: hour cycle preference: UnknownPreference"}
{"level":30,"time":"2024-03-22T22:20:53.627Z","msg":"app.ready: preferred system locales: en-US, en"}
{"level":30,"time":"2024-03-22T22:20:53.627Z","msg":"locale: Supported locales: af-ZA, ar, az-AZ, bg-BG, bn-BD, bs-BA, ca, cs, da, de, el, en, es, et-EE, eu, fa-IR, fi, fr, ga-IE, gl-ES, gu-IN, he, hi-IN, hr-HR, hu, id, it, ja, ka-GE, kk-KZ, km-KH, kn-IN, ko, ky-KG, lt-LT, lv-LV, mk-MK, ml-IN, mr-IN, ms, my, nb, nl, pa-IN, pl, pt-BR, pt-PT, ro-RO, ru, sk-SK, sl-SI, sq-AL, sr, sv, sw, ta-IN, te-IN, th, tl-PH, tr, ug, uk-UA, ur, vi, yue, zh-CN, zh-HK, zh-Hant"}
{"level":30,"time":"2024-03-22T22:20:53.628Z","msg":"locale: Preferred locales: en-US, en"}
{"level":30,"time":"2024-03-22T22:20:53.628Z","msg":"locale: Locale Override: null"}
{"level":30,"time":"2024-03-22T22:20:53.629Z","msg":"locale: Matched locale: en"}
{"level":40,"time":"2024-03-22T22:20:53.655Z","msg":"intl.onWarn [@formatjs/intl] \"defaultRichTextElements\" was specified but \"message\" was not pre-compiled. \nPlease consider using \"@formatjs/cli\" to pre-compile your messages for performance.\nFor more details see https://formatjs.io/docs/getting-started/message-distribution"}
{"level":30,"time":"2024-03-22T22:20:53.655Z","msg":"locale: Text info direction for en: ltr"}
{"level":30,"time":"2024-03-22T22:20:53.656Z","msg":"app ready"}
{"level":30,"time":"2024-03-22T22:20:53.657Z","msg":"starting version 7.3.0"}
{"level":30,"time":"2024-03-22T22:20:53.657Z","msg":"media access status [object Undefined] [object Undefined]"}
{"level":30,"time":"2024-03-22T22:20:53.658Z","msg":"got fast theme-setting value system"}
{"level":30,"time":"2024-03-22T22:20:53.659Z","msg":"got fast theme-setting value system"}
{"level":30,"time":"2024-03-22T22:20:53.659Z","msg":"got fast spellcheck setting true"}
{"level":30,"time":"2024-03-22T22:20:53.660Z","msg":"getSystemTraySetting had no flags and did no DB lookups. Returning DoNotUseSystemTray"}
{"level":30,"time":"2024-03-22T22:20:53.660Z","msg":"Initializing BrowserWindow config: {\"show\":false,\"width\":800,\"height\":610,\"minWidth\":300,\"minHeight\":200,\"autoHideMenuBar\":false,\"titleBarStyle\":\"default\",\"backgroundColor\":\"#3a76f0\",\"webPreferences\":{\"devTools\":false,\"spellcheck\":true,\"enableBlinkFeatures\":\"CSSPseudoDir,CSSLogical\",\"enablePreferredSizeMode\":true,\"nodeIntegration\":false,\"nodeIntegrationInWorker\":false,\"sandbox\":false,\"contextIsolation\":true,\"preload\":\"[REDACTED]/preload.bundle.js\",\"backgroundThrottling\":true,\"disableBlinkFeatures\":\"Accelerated2dCanvas,AcceleratedSmallCanvases\"},\"icon\":\"[REDACTED]/images/signal-logo-desktop-linux.png\",\"x\":3,\"y\":1534}"}
{"level":30,"time":"2024-03-22T22:20:53.694Z","msg":"spellcheck: user locales: [\"en-US\",\"en\"]"}
{"level":30,"time":"2024-03-22T22:20:53.694Z","msg":"spellcheck: available spellchecker languages: [\"af\",\"bg\",\"ca\",\"cs\",\"cy\",\"da\",\"de\",\"de-DE\",\"el\",\"en\",\"en-AU\",\"en-CA\",\"en-GB\",\"en-GB-oxendict\",\"en-US\",\"es\",\"es-419\",\"es-AR\",\"es-ES\",\"es-MX\",\"es-US\",\"et\",\"fa\",\"fo\",\"fr\",\"fr-FR\",\"he\",\"hi\",\"hr\",\"hu\",\"hy\",\"id\",\"it\",\"it-IT\",\"ko\",\"lt\",\"lv\",\"nb\",\"nl\",\"pl\",\"pt\",\"pt-BR\",\"pt-PT\",\"ro\",\"ru\",\"sh\",\"sk\",\"sl\",\"sq\",\"sr\",\"sv\",\"ta\",\"tg\",\"tr\",\"uk\",\"vi\"]"}
{"level":30,"time":"2024-03-22T22:20:53.694Z","msg":"spellcheck: setting languages to: [\"en-US\",\"en\"]"}
{"level":40,"time":"2024-03-22T22:20:53.694Z","msg":"MainSQL: Database log code=283: recovered 38 frames from WAL file [REDACTED]/sql/db.sqlite-wal"}
{"level":30,"time":"2024-03-22T22:20:53.694Z","msg":"MainSQL: updateSchema:\n  Current user_version: 1000;\n  Most recent db schema: 1000;\n  SQLite version: 3.42.0;\n  SQLCipher version: 4.5.5 community;\n  (deprecated) schema_version: 441;\n"}
{"level":30,"time":"2024-03-22T22:20:54.023Z","msg":"got fast theme-setting value system"}
{"level":30,"time":"2024-03-22T22:20:54.515Z","msg":"got fast spellcheck setting true"}
{"level":30,"time":"2024-03-22T22:20:54.518Z","msg":"System tray service: created"}
{"level":30,"time":"2024-03-22T22:20:54.518Z","msg":"System tray service: updating main window. Previously, there was not a window, and now there is"}
{"level":30,"time":"2024-03-22T22:20:54.518Z","msg":"System tray service: rendering no tray"}
{"level":30,"time":"2024-03-22T22:20:54.519Z","msg":"Begin ensuring permissions"}
{"level":30,"time":"2024-03-22T22:20:54.519Z","msg":"Ensuring file permissions for 4 files"}
{"level":30,"time":"2024-03-22T22:20:54.520Z","msg":"Finish ensuring permissions in 1ms"}
{"level":30,"time":"2024-03-22T22:20:54.642Z","msg":"Prevent display sleep service: allowing display sleep"}
{"level":30,"time":"2024-03-22T22:20:54.642Z","msg":"Background throttling enabled because no call is active"}
{"level":30,"time":"2024-03-22T22:20:54.880Z","msg":"updater/start: Updates disabled - not starting new version checks"}
{"level":30,"time":"2024-03-22T22:20:54.881Z","msg":"App loaded - time: 1225"}
{"level":30,"time":"2024-03-22T22:20:54.882Z","msg":"SQL init - time: 70"}
{"level":30,"time":"2024-03-22T22:20:54.882Z","msg":"Preload - time: 486"}
{"level":30,"time":"2024-03-22T22:20:54.882Z","msg":"WebSocket connect - time: 274"}
{"level":30,"time":"2024-03-22T22:20:54.882Z","msg":"Processed count: 0"}
{"level":30,"time":"2024-03-22T22:20:54.882Z","msg":"Messages per second: 0"}

@akvadrako
Copy link

akvadrako commented Apr 13, 2024

I have the same issue, there is no error message but Signal just exits and no window appears. It was working a few weeks ago. This occurs in both the stable and beta branches. The main difference I see in the logs when using X11 vs wayland is the wayland version is missing these lines:

{"level":30,"time":"2024-04-13T08:49:17.492Z","msg":"main window is ready-to-show"}
{"level":30,"time":"2024-04-13T08:49:17.492Z","msg":"showing main window"}
{"level":30,"time":"2024-04-13T08:49:17.494Z","msg":"System tray service: rendering the tray"}

@Xtrems876
Copy link

Xtrems876 commented Jul 17, 2024

Setting SIGNAL_USE_WAYLAND=1 in kcm_flatpak results in the flatpak launching, but no window is drawn.

If you also have the option to minimise to tray turned on, Signal will launch without a window but the window will be drawn if Signal is then accessed through the tray icon. This is the case regardless of having the "start minimized" turned on or off.

@sfalken
Copy link
Author

sfalken commented Jul 19, 2024

Setting SIGNAL_USE_WAYLAND=1 in kcm_flatpak seems to work inconsistently for me, sometimes it launches, sometimes it doesn't, but it works fine when it does launch.

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

No branches or pull requests

4 participants