-
Notifications
You must be signed in to change notification settings - Fork 23
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
Fix building and running on systems without systemd #59
Conversation
I suppose if journald isn't present, we should probably try logging to I'm interested to see what other parts of Cosmic may have issues without systemd. I know cosmic-comp works on Gentoo OpenRC and (at least when I last tried it) FreeBSD, but I haven't tried running all the Cosmic components on either. |
Just noticed that the cfg directive applies to the entire if-let-else block in the third commit and therefore no logging will happen at all if building without the systemd feature. I'll update the commit for that tomorrow. |
working on packaging this void linux, which also lacks systemd no build errors, but failing at runtime when launching
|
6e426f4
to
357379d
Compare
@Calandracas606, I believe you should remove the last 2 lines in Cargo.toml:
Still, it fails to run due to some Not sure what's going on tbh. |
It would be a better idea to just pass the
I can't reproduce this on my own system (Artix) with these patches applied. If you're able to get a backtrace with debugging info then I'd be happy to take a look. |
@Foxinatel, do you mind explaining the step by step to achieve that? Thanks! |
EDIT: Ignore below. We need to call Not sure if this helps (
Why is it looking for |
Glad you managed to figure it out :) |
I can confirm at least that on artix that this + the PR for cosmic-notifications allows cosmic de to work, so it would be nice if these can be reviewed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks for working on this!
Addresses: #51
Currently trying to build without the
systemd
feature causes compile time errors. The first commit in this PR simply fixes those.The seconds commit turns
tracing-journald
into an optional dependency which is only included when building with thesystemd
feature.The third commit removes the runtime panic that occurs when
journald
is not available on a system, falling back to a default and providing a warning instead of a hard crash. This is useful on distros like Artix or Devuan where many features of systemd are available (dbus, logind), such that building with thesystemd
feature is preferable, but journald is not present.