You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
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).
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.
Activity
git-f0x commentedon May 29, 2026
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.
CarterLi commentedon May 29, 2026
Okey.
Is there any other method to query the version of COSMIC DE or cosmic-comp?
mmstick commentedon May 29, 2026
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.
git-f0x commentedon Aug 25, 2026
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).
CarterLi commentedon Aug 25, 2026
It will be very helpful if you can also expose an environment varable like
$COSMIC_VERSIONgit-f0x commentedon Sep 13, 2026
You can now use
cosmic-session --versionto get the session version (outputscosmic-session x.y.z), as well as$COSMIC_VERSION(outputs justx.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-sessionyet, so the version might be inaccurate for a bit, but it'll fix itself once it's added.DE (Linux): uses `COSMIC_VERSION` if available
CarterLi commentedon Sep 13, 2026
Thanks