niri icon indicating copy to clipboard operation
niri copied to clipboard

Publish on crates.io to allow "cargo install niri"

Open hardBSDk opened this issue 2 years ago • 4 comments

hardBSDk avatar Nov 02 '23 19:11 hardBSDk

While this is a valid thing you can do, it's not really how you want to install a Wayland compositor. You need not just the binary, but the session and desktop files installed in the correct system folders, so niri shows up in your login manager. cargo install cannot do that.

YaLTeR avatar Nov 02 '23 19:11 YaLTeR

Wouldn't this make sense for cases where people run it directly from a TTY and not using a login manager (as I do)?

tversteeg avatar Nov 20 '23 15:11 tversteeg

It would, yeah. Honestly I'm thinking more about versioning. Since there's no release and updating a crate every commit sounds tedious and like a bad idea.

Although now that a considerable amount of stuff is implemented maybe I should tag an alpha version and put that up as a crate or something.

YaLTeR avatar Nov 20 '23 15:11 YaLTeR

Hm, it seems that things published on crates.io cannot use git dependencies, so this will have to wait until the next Smithay release.

YaLTeR avatar Nov 25 '23 09:11 YaLTeR

Hey, I'm maintaining centerpiece. Centerpiece is a pluggable desktop launcher and I would love to build a plugin for niri which shows open windows and lets you switch to them. Therefore, I'd like to use the niri-ipc crate to talk to niri. It would be really nice to get this published to crates.io so I we can depend on it :).

friedow avatar Oct 27 '24 14:10 friedow

I guess I could publish niri-ipc, it doesn't depend on Smithay. Maybe with next niri release.

YaLTeR avatar Oct 27 '24 19:10 YaLTeR

That would be awesome! I'll prepare everything on centerpiece side until then :).

friedow avatar Oct 28 '24 05:10 friedow

niri-ipc is now on crates.io: https://crates.io/crates/niri-ipc

I'll close this issue since it's not actionable unless Smithay makes a stable release.

YaLTeR avatar Nov 09 '24 16:11 YaLTeR