pop-os / cosmic-session

Session manager for the COSMIC desktop environment
GNU General Public License v3.0
71 stars 21 forks source link

When cosmic-comp restarts, shell apps sometimes don't restart properly #13

Open wash2 opened 1 year ago

wash2 commented 1 year ago

Ahh I've just seen what I think is the same issue again at the start of cosmic-session. Most shell components fail several times until they go over the retry limit because they fail to connect to cosmic-comp WARN cosmic-launcher: cosmic_session: thread 'main' panicked at 'Failed to initialize the event loop: NoCompositor

Drakulix commented 1 year ago

Yeah for the compositor we essentially need to wait for it to become available and then force another restart of the other components. Not sure if launch-pad has the infrastructure to allow us to special-case this yet.

ids1024 commented 1 year ago

We also probably want to remove the hard limit on the number of retries. It would eventually restart correctly with maybe exponential backoff in restart rate, plus a random factor. (Don't want to be constantly restarting things, or restarting everything in lockstep.)

But this specific case should be handled explicitly too.