Skip to content

Feature Request: Internalize start-cosmic shell script into the Rust binary #195

Description

@LinuxBoy-96

The data/start-cosmic shell script sets environment variables and exec's cosmic-session. This logic could live directly in the binary (early in main(), using std::env::set_var), removing the runtime dependency on /bin/sh.
Every other Wayland compositor (sway, labwc, Hyprland, wayfire) launches directly from its binary without a shell wrapper. Their .desktop files point straight to the binary.
This would:

  • Remove the shell dependency from the session startup path
  • Simplify packaging for minimal distributions
  • Be consistent with COSMIC's Rust-native approach

The .desktop entry would change from Exec=start-cosmic to Exec=cosmic-session. Users can still override environment variables via their greeter config or ~/.config/environment.d/.

This would also fix PR #193

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions