Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/flatpak.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
uses: flatpak/flatpak-github-actions/flatpak-builder@v6
with:
bundle: cosmic-utils-enroll.flatpak
manifest-path: flatpak/org.cosmic_utils.Enroll.yml
manifest-path: flatpak/org.cosmic_utils.enroll.yml
cache-key: flatpak-builder-${{ github.sha }}

- name: Get version
Expand Down
3 changes: 3 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,6 @@
- Moved project to COSMIC utils
- Renamed from Fprint to Enroll
- Redesigned icon svg
0.4.1:
- Switched to snake case in ID
- Renamed icon.svg to enroll.svg
36 changes: 18 additions & 18 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "cosmic-utils-enroll"
version = "0.4.0"
version = "0.4.1"
edition = "2024"
license = "MPL-2.0"
description = "GUI for fprintd fingerprint enrolling"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@ modules:
- install -Dm0755 target/release/cosmic-utils-enroll /app/bin/cosmic-utils-enroll

# Install the desktop file
- install -Dm0644 resources/org.cosmic_utils.Enroll.desktop /app/share/applications/org.cosmic_utils.Enroll.desktop
- install -Dm0644 resources/org.cosmic_utils.enroll.desktop /app/share/applications/org.cosmic_utils.enroll.desktop

# Install the AppStream metadata
- install -Dm0644 resources/org.cosmic_utils.Enroll.metainfo.xml /app/share/appdata/org.cosmic_utils.Enroll.metainfo.xml
- install -Dm0644 resources/org.cosmic_utils.enroll.metainfo.xml /app/share/appdata/org.cosmic_utils.enroll.metainfo.xml

# Install the icon
- install -Dm0644 resources/icons/hicolor/scalable/apps/icon.svg /app/share/icons/hicolor/scalable/apps/org.cosmic_utils.Enroll.svg
- install -Dm0644 resources/icons/hicolor/scalable/apps/enroll.svg /app/share/icons/hicolor/scalable/apps/org.cosmic_utils.enroll.svg

sources:
- type: dir
Expand Down
2 changes: 1 addition & 1 deletion justfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ appdata-dst := clean(rootdir / prefix) / 'share' / 'appdata' / appdata
icons-src := 'resources' / 'icons' / 'hicolor'
icons-dst := clean(rootdir / prefix) / 'share' / 'icons' / 'hicolor'

icon-svg-src := icons-src / 'scalable' / 'apps' / 'icon.svg'
icon-svg-src := icons-src / 'scalable' / 'apps' / 'enroll.svg'
icon-svg-dst := icons-dst / 'scalable' / 'apps' / appid + '.svg'

# Default recipe which runs `just build-release`
Expand Down
40 changes: 0 additions & 40 deletions resources/org.cosmic_utils.Enroll.metainfo.xml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
[Desktop Entry]
Name=Enroll
Comment=GUI for fprintd fingerprint enrolling
Comment=Manage fingerprints
Type=Application
Icon=org.cosmic_utils.Enroll
Exec=cosmic-utils-enroll %F
Terminal=false
StartupNotify=true
Categories=Utility;System;
Categories=Utility;COSMIC;
Keywords=Fingerprint;Security;
MimeType=
58 changes: 58 additions & 0 deletions resources/org.cosmic_utils.enroll.metainfo.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
<?xml version="1.0" encoding="UTF-8"?>
<component type="desktop-application">
<id>org.cosmic_utils.enroll</id>
<metadata_license>CC0-1.0</metadata_license>
<project_license>MPL-2.0</project_license>
<name>Enroll</name>
<summary>GUI built with COSMIC toolkit for fprintd fingerprint enrolling</summary>
<developer id="org.cosmic-utils">
<name>Joonas Tuomi</name>
</developer>
<description>
<p>
Fingerprint management for multi-user systems using the fprintd daemon. It allows you to register and delete fingerprints for authentication on your Linux system.
</p>
</description>
<icon type="remote" width="64" height="64" scale="1">
https://github.com/cosmic-utils/enroll/raw/main/resources/icons/hicolor/scalable/apps/enroll.svg
</icon>
<launchable type="desktop-id">org.cosmic_utils.enroll.desktop</launchable>
<provides>
<id>org.cosmic_utils.enroll</id>
<binaries>
<binary>cosmic-utils-enroll</binary>
</binaries>
</provides>
<requires>
<display_length compare="ge">360</display_length>
</requires>
<supports>
<control>keyboard</control>
<control>pointing</control>
<control>touch</control>
</supports>
<categories>
<category>Utility</category>
<category>COSMIC</category>
</categories>
<keywords>
<keyword>Fingerprint</keyword>
<keyword>Authentication</keyword>
</keywords>
<branding>
<color type="primary" scheme_preference="light">#7ea5ae</color>
<color type="primary" scheme_preference="dark">#381a38</color>
</branding>
<content_rating type="oars-1.1" />
<url type="homepage">https://cosmic-utils.org</url>
<url type="vcs-browser">https://github.com/cosmic-utils/enroll</url>
<screenshots>
<screenshot type="default">
<image>https://user.fm/files/v2-2f0daf05b0e66f25db2778188ab82373/enroll-main.png</image>
</screenshot>
<screenshot>
<image>https://user.fm/files/v2-808d13b70d649c6b65df2cce1849db2f/enroll-additional.png</image>
</screenshot>
</screenshots>
</component>

3 changes: 1 addition & 2 deletions src/app/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ use fprint::{
use error::AppError;

const REPOSITORY: &str = env!("CARGO_PKG_REPOSITORY");
const APP_ICON: &[u8] = include_bytes!("../../resources/icons/hicolor/scalable/apps/icon.svg");
const APP_ICON: &[u8] = include_bytes!("../../resources/icons/hicolor/scalable/apps/enroll.svg");
const FPRINT_ICON: &[u8] = include_bytes!("../../resources/icons/hicolor/scalable/apps/fprint.svg");

const STATUS_TEXT_SIZE: u16 = 16;
Expand Down Expand Up @@ -123,7 +123,6 @@ impl cosmic::Application for AppModel {
context_page: ContextPage::default(),
nav,
key_binds: HashMap::new(),
// Optional configuration file for an application.
config: Config::default(),
status: fl!("status-connecting"),
device_path: None,
Expand Down