Skip to content

Build failure when autostart feature is enabled, but systemd is disabled #136

@vadorovsky

Description

@vadorovsky

Building cosmic-session with the following command:

cargo build --no-default-features --features autostart

fails with:

error[E0425]: cannot find function `is_systemd_used` in this scope
   --> src/main.rs:455:7
    |
455 |     if !*is_systemd_used() {
    |          ^^^^^^^^^^^^^^^ not found in this scope
    |
help: consider importing this function
    |
12  + use crate::systemd::is_systemd_used;

Such combination of flags is desirable for systems without systemd, where autodetection is not neessary and we could just immediately autostart, if requested.

Also, it would be great to ensure no combination of features fails.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions