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

Unable to actually close the app (Linux/.deb) #1476

Closed
JocelynDelalande opened this issue Feb 1, 2024 · 4 comments
Closed

Unable to actually close the app (Linux/.deb) #1476

JocelynDelalande opened this issue Feb 1, 2024 · 4 comments
Labels

Comments

@JocelynDelalande
Copy link

Steps to reproduce

  1. Element desktop is up and running
  2. I click « Element » then « Quit »

Outcome

What did you expect?

Electron app to close, not just to hide.

What happened instead?

Window vanish but electron app is still active : 

ps aux |grep element

$ ps aux|grep element
jocelyn   834859  7.0  1.0 1178659436 177296 ?   SLl  11:55   0:06 /opt/Element/element-desktop
jocelyn   834873  0.0  0.3 33794972 50868 ?      S    11:55   0:00 /opt/Element/element-desktop --type=zygote --no-zygote-sandbox
jocelyn   834874  0.0  0.3 33794960 49124 ?      S    11:55   0:00 /opt/Element/element-desktop --type=zygote
jocelyn   834876  0.0  0.0 33794984 12560 ?      S    11:55   0:00 /opt/Element/element-desktop --type=zygote
jocelyn   834941  3.7  0.8 34297936 146208 ?     Sl   11:55   0:03 /opt/Element/element-desktop --type=gpu-process --enable-crash-reporter=cfce13f3-8618-4718-9ecb-6fca4ced6c30,no_channel --user-data-dir=/home/jocelyn/.config/Element --gpu-preferences=WAAAAAAAAAAgAAAEAAAAAAAAAAAAAAAAAABgAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAGAAAAAAAAAAYAAAAAAAAAAgAAAAAAAAACAAAAAAAAAAIAAAAAAAAAA== --shared-files --field-trial-handle=0,i,5445438882426001561,1102047133222954041,262144 --enable-features=WebRTCPipeWireCapturer --disable-features=HardwareMediaKeyHandling,MediaSessionService,SpareRendererForSitePerProcess
jocelyn   834945  1.8  0.4 33844708 73804 ?      Sl   11:55   0:01 /opt/Element/element-desktop --type=utility --utility-sub-type=network.mojom.NetworkService --lang=fr --service-sandbox-type=none --enable-crash-reporter=cfce13f3-8618-4718-9ecb-6fca4ced6c30,no_channel --user-data-dir=/home/jocelyn/.config/Element --standard-schemes=vector --enable-sandbox --secure-schemes=vector --bypasscsp-schemes --cors-schemes --fetch-schemes=vector --service-worker-schemes --streaming-schemes --shared-files=v8_context_snapshot_data:100 --field-trial-handle=0,i,5445438882426001561,1102047133222954041,262144 --enable-features=WebRTCPipeWireCapturer --disable-features=HardwareMediaKeyHandling,MediaSessionService,SpareRendererForSitePerProcess
jocelyn   834956 19.2  1.6 1191050008 275912 ?   Sl   11:55   0:17 /opt/Element/element-desktop --type=renderer --enable-crash-reporter=cfce13f3-8618-4718-9ecb-6fca4ced6c30,no_channel --user-data-dir=/home/jocelyn/.config/Element --standard-schemes=vector --enable-sandbox --secure-schemes=vector --bypasscsp-schemes --cors-schemes --fetch-schemes=vector --service-worker-schemes --streaming-schemes --app-path=/opt/Element/resources/app.asar --enable-sandbox --first-renderer-process --lang=fr --num-raster-threads=2 --enable-main-frame-before-activation --renderer-client-id=4 --time-ticks-at-unix-epoch=-1706240008325366 --launch-time-ticks=544910634479 --shared-files=v8_context_snapshot_data:100 --field-trial-handle=0,i,5445438882426001561,1102047133222954041,262144 --enable-features=WebRTCPipeWireCapturer --disable-features=HardwareMediaKeyHandling,MediaSessionService,SpareRendererForSitePerProcess


Operating system

Linux (.deb)

Application version

1.11.49

How did you install the app?

.deb from https://packages.element.io/

Homeserver

Synapse

Will you send logs?

No

@t3chguy
Copy link
Member

t3chguy commented Feb 1, 2024

If you run the app from your Terminal (after killing it entirely) element-desktop and Quit in the normal manner do you see anything on the terminal?

@t3chguy t3chguy added the X-Needs-Info This issue is blocked awaiting information from the reporter label Feb 1, 2024
@JocelynDelalande
Copy link
Author

@t3chguy In terminal, nothing happens at the moment I click the « quit » button (even if the window vanishes)

Here is the log if I run element-desktop from terminal :

$ element-desktop 
/home/jocelyn/.config/Element exists: yes
/home/jocelyn/.config/Riot exists: no
Starting auto update with base URL: https://packages.element.io/desktop/update/
Auto update not supported on this platform
Fetching translation json for locale: en_EN
Changing application language to fr
Fetching translation json for locale: fr
Resetting the UI components after locale change
Resetting the UI components after locale change
Changing application language to fr
Fetching translation json for locale: fr
Resetting the UI components after locale change
[839659:0201/133213.530263:ERROR:nss_util.cc(357)] After loading Root Certs, loaded==false: NSS error code: -8018
[839703:0201/133214.856282:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 1 times!

Once element is started, I see the last line of the log. If I click quit, it remains the last line displayed and the process is still active in the terminal (no prompt given back at any moment, unless I manually kill element processes).

@t3chguy t3chguy removed the X-Needs-Info This issue is blocked awaiting information from the reporter label Feb 1, 2024
@port19x
Copy link

port19x commented May 9, 2024

I had trouble finding the "real" exit button.
It's bound to CTRL-Q and also available under File > Quit in the Alt menu.
Hope this helps another internet traveller

@t3chguy
Copy link
Member

t3chguy commented Jun 4, 2024

I click « Element » then « Quit »

So this seems to be an issue with the WM wrongly titling the option Quit instead of Close/Exit. All it does is close the window, which by default closes the app to tray. If you want Quit to actually quit you can turn off the tray and then it'll close fully:

image

Closing as a WM/DE issue and not an Element one.

@t3chguy t3chguy closed this as not planned Won't fix, can't repro, duplicate, stale Jun 4, 2024
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

3 participants