flathub / org.libreoffice.LibreOffice

https://flathub.org/apps/details/org.libreoffice.LibreOffice
29 stars 18 forks source link

Flatpak shuts down after a few seconds #249

Closed CodeSandwich closed 10 months ago

CodeSandwich commented 11 months ago

Running LO flatpak results in a silent crash after a few seconds no matter what I'm doing.

(Sorry for poor formatting, I'm using oh-my-bash, ~  is my prompt, ~  137  is my prompt with an exit status, in this case 137)

For example, trying to run LO normally:

 ~  flatpak run org.libreoffice.LibreOffice
Failed to open display
 ~  137 

There are no artifacts on the screen, LO seems to work just fine for a few seconds and then it shuts down.

Interestingly you don't even need to run LO in LO container:

 ~  flatpak --command=sh run org.libreoffice.LibreOffice
[📦 org.libreoffice.LibreOffice ~]$  ~  137 

It too works perfectly fine for a few seconds executing commands, and then it shuts down regardless of what I'm doing. The only difference is that it seems to break the output of the terminal, I can't see what I'm typing anymore, but otherwise it works fine, tested on Konsole, XTerm, Bash with oh-my-bash and sh:

 ~  137  
bash: asfd: command not found
 ~  127  
abcd
 ~  

The abcd comes from typing blindly echo abcd.

I'm running Flatpak 1.15.4 on Manjaro with KDE 5.27.6 on Wayland. It's been like this for months, but I was too lazy to investigate more, I just kept using the native version of LO.

stbergmann commented 11 months ago

Interestingly you don't even need to run LO in LO container:

Does that crash also happen when you run just the underlying runtime instead of the LO app, i.e., flatpak run --command=sh org.freedesktop.Platform//22.08?

CodeSandwich commented 11 months ago

flatpak run --command=sh org.freedesktop.Platform//22.08

It doesn't crash. I'm using several other apps as flatpaks and they too all work fine, only LO crashes.

xalt7x commented 10 months ago

Related KDE upstream bug-report For now you can workaround it with Flatseal "Background" permission or using command bellow flatpak permission-set background background org.libreoffice.LibreOffice yes

CodeSandwich commented 10 months ago

Thank you @xalt7x, that was it! After running this command LO works perfectly fine, it doesn't shut down anymore.

This is a KDE problem, so I'll close this issue, there's nothing to fix in this package.