No description
Find a file
lucamosca1 320d9e25d4
Some checks failed
Continuous integration / Rustfmt (push) Has been cancelled
Continuous integration / Clippy Check (push) Has been cancelled
Continuous integration / Test (push) Has been cancelled
i18n(it): update translation
2025-09-17 13:54:28 +02:00
.github/workflows chore(github): build with ubuntu-24.04 2024-08-13 19:40:30 +02:00
.vscode feat: dropdown popups 2025-03-14 18:12:40 +01:00
cosmic-settings fix: set initial binding input and select all for input strings when focused 2025-09-17 13:52:58 +02:00
debian chore: add startup applications command and desktop entry 2025-09-15 15:58:13 +02:00
i18n i18n(it): update translation 2025-09-17 13:54:28 +02:00
page chore: update dependencies 2025-09-12 17:33:40 -04:00
pages chore: update dependencies 2025-09-12 17:33:40 -04:00
resources chore: add startup applications command and desktop entry 2025-09-15 15:58:13 +02:00
scripts fix(vendor): define revision for cosmic-protocols 2024-07-31 16:39:44 +02:00
.gitignore chore: add nix flake 2023-06-26 18:22:58 +02:00
Cargo.lock feat: shortcut key input 2025-09-16 01:00:26 +02:00
Cargo.toml chore: update dependencies 2025-09-12 17:33:40 -04:00
flake.lock fix(nix): Simplify nix flake and fix dependencies 2025-05-28 17:21:45 +02:00
flake.nix fix(nix): Simplify nix flake and fix dependencies 2025-05-28 17:21:45 +02:00
justfile chore: add startup applications command and desktop entry 2025-09-15 15:58:13 +02:00
LICENSE.md feat: settings application architecture 2023-01-26 23:20:45 +01:00
README.md chore: document accent palette config 2025-02-27 18:13:09 +01:00
rust-toolchain.toml chore: update libcosmic 2025-03-21 20:12:22 +01:00
TESTING.md docs: Add QA testing checklist 2025-07-21 16:54:02 +02:00

COSMIC Settings

The settings application for the COSMIC desktop environment.

Translators

Translation files may be found in the i18n directory. New translations may copy the English (en) localization of the project and rename en to the desired ISO 639-1 language code. Translations may be submitted through GitHub as an issue or pull request. Submissions by email or other means are also acceptable; with the preferred name and email to associate with the changes.

Distributors

The accent palettes on the Appearance settings page are configurable through the cosmic-config directory at /usr/share/cosmic/com.system76.CosmicSettings/v1/. One at accent_palette_dark, and another at accent_palette_light. Examples can be found at resources/accent_palette_dark.ron and resources/accent_palette_light.ron. This can be copied locally to ~/.config/cosmic/com.system76.CosmicSettings/v1/ for testing, and then move to /usr/share/cosmic for packaging.

Build

Dependencies

See the Build-Depends section of the debian control file.

Install

COSMIC uses just as its preferred build tool.

just
sudo just install

Packaging

If packaging for a Linux distribution, vendor dependencies locally with the vendor rule, and build with the vendored sources using the build-vendored rule. When installing files, use the rootdir and prefix variables to change installation paths.

just vendor
just build-vendored
just rootdir=debian/cosmic-settings prefix=/usr install

It is recommended to build a source tarball with the vendored dependencies, which can typically be done by running just vendor on the host system before it enters the build environment. Reference debian/rules to see how we generate debian packages with sbuild.

Developers

Developers should install rustup and configure their editor to use rust-analyzer. Run just check to ensure that the changes you make are free of linter warnings. You may configure your editor to run just check-json as the rust-analyzer check command.

To improve compilation times, disable LTO in the release profile, install the mold linker, and configure sccache for use with Rust. The mold linker will only improve link times if LTO is disabled.

Run the cosmic-settings binary with just run so that logs will be emitted to stderr, and crashes will generate detailed backtraces. Applications shouldn't crash, so when writing code, avoid use of unwrap() and expect(). Instead, log errors with tracing::error!() or tracing::warn!().

License

Licensed under the GNU Public License 3.0.

Contribution

Any contribution intentionally submitted for inclusion in the work by you shall be licensed under the GNU Public License 3.0 (GPL-3.0). Each source file should have a SPDX copyright notice at the top of the file:

// SPDX-License-Identifier: GPL-3.0-only