Open billksun opened 1 month ago
You probably want to avoid using cosmic-session
altogether, as it makes lots of assumptions about COSMIC that won't be true if you start replacing pieces here and there
For now, perhaps create your own script or equivalent of cosmic-session
that is able to work with the way that niri
exposes the environment variables
Now that Cosmic is nearing Alpha status, I finally followed up on my previous inquiry on the feasibility of running 3rd-party compositors with Cosmic DE (#151).
Following @Drakulix's comment, I attempted to patch
cosmic-session
to launchniri
instead. The result is that Niri was able to launch (nice!), however, none of the cosmic clients (panel, notifications, dock ... etc) started. Here's the boot log error:Code that paniced above: https://github.com/pop-os/cosmic-protocols/blob/1316f9e1148ec65351471d8a046ffc82171b066e/client-toolkit/src/toplevel_info.rs#L40
Aside from this, I also noticed that
cosmic-session
retrieves environment variables via IPC from the compositor, and this part seems to never return...at least, the error message associated was never printed to the log and the subsequent "success" entry also was not written to the log output. However, the panel attempting to load seems to suggest that the code isn't blocking?I'm keeping my fingers crossed, I hope there isn't any huge blockers preventing from using Niri with Cosmic. Let me know what I can do to help :)