Skip to content

cosmic-comp --version always reports 1.0.0 #2425

Closed

Description

@CarterLi
$ cosmic-comp --version
cosmic-comp 1.0.0 (git commit b955789a4e797a54897d7c584529e7f00b781f9f)

I think it should report 1.0.13. Is it expected behavior?

Activity

  1. git-f0x commented on May 29, 2026

    @git-f0x
    Contributor

    Yes, because the version in Cargo.toml is used for that, and that isn't updated regularly.
    Using the git tag for displaying the version wouldn't work with distro builds.

  2. CarterLi commented on May 29, 2026

    @CarterLi
    Author

    Okey.

    Is there any other method to query the version of COSMIC DE or cosmic-comp?

  3. mmstick commented on May 29, 2026

    @mmstick
    Member

    You can get it from your package manager. For Pop!_OS and Ubuntu, apt-cache policy cosmic-comp. Pop!_OS's build system also adds the timestamp of the build and the git commit it was built from to the version string.

    The git commit of the package is more important than the DE version.

  4. git-f0x commented on Aug 25, 2026

    @git-f0x
    Contributor

    If this PR gets merged, fastfetch should be able to query cosmic-session for the version, and cosmic-session will likely be added to the version update script (so its version will match the tag).

  5. CarterLi commented on Aug 25, 2026

    @CarterLi
    Author

    It will be very helpful if you can also expose an environment varable like $COSMIC_VERSION

  6. git-f0x commented on Sep 13, 2026

    @git-f0x
    Contributor

    You can now use cosmic-session --version to get the session version (outputs cosmic-session x.y.z), as well as $COSMIC_VERSION (outputs just x.y.z).
    It didn't make it into the 1.8.0 tag, but will be there with 1.9.0. The version update script doesn't include cosmic-session yet, so the version might be inaccurate for a bit, but it'll fix itself once it's added.

  7. CarterLi commented on Sep 13, 2026

    @CarterLi
    Author

    Thanks

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