packaging: the desktop entry and the icon

net.catcrafts.ImsdMessages.desktop (Messages; Exec imsd-messages %u; the
sms: URI scheme; X-KDE-FormFactor and X-Purism-FormFactor) and a scalable
icon.

Both carry the two SPDX lines: the desktop entry as `#` comments before
its group, the icon after its XML declaration; AGENTS.md's rule says
where the lines go in such files.
This commit is contained in:
Jorijn van der Graaf 2026-10-18 02:37:57 +02:00
commit 4342c84d8f
Signed by: jorijnvdgraaf
GPG key ID: 2937E59CDCC1BCFB
3 changed files with 33 additions and 2 deletions

View file

@ -34,7 +34,7 @@ and §7.9 (Messaging) and §8.1 (the frozen one).
| `tests/<Name>/main.cpp` | One test per directory, declared in `project.cpp`. | | `tests/<Name>/main.cpp` | One test per directory, declared in `project.cpp`. |
| `utilities/` | `fake-imsd.py`: imsd's Messaging interface on the session bus, for benches. | | `utilities/` | `fake-imsd.py`: imsd's Messaging interface on the session bus, for benches. |
| `assets/` | The bundled font (Noto Sans, OFL 1.1). | | `assets/` | The bundled font (Noto Sans, OFL 1.1). |
| `packaging/` | `build-libevdev.sh`: libevdev into a prefix. | | `packaging/` | `build-libevdev.sh` (libevdev into a prefix, for the Crafter.Graphics build), the desktop entry and the icon. |
## 3. Building and testing ## 3. Building and testing
@ -55,4 +55,6 @@ the bus library where they need GLib) and never need a bus, a phone or a GPU.
configured identity. configured identity.
- `format`, `lint` and `test` green before a push; every push goes through - `format`, `lint` and `test` green before a push; every push goes through
the fp6 project's `/prepush` gates. the fp6 project's `/prepush` gates.
- Every source file starts with the two SPDX lines and a blank line. - Every source file starts with the two SPDX lines and a blank line — after
a shebang or an XML declaration where the file has one, as `#` comments in
a desktop entry.

View file

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- SPDX-License-Identifier: GPL-3.0-only -->
<!-- SPDX-FileCopyrightText: Copyright (C) 2026 Catcrafts® -->
<svg xmlns="http://www.w3.org/2000/svg" width="128" height="128" viewBox="0 0 128 128">
<rect x="8" y="8" width="112" height="112" rx="28" fill="#2f6fed"/>
<path d="M34 36h60a10 10 0 0 1 10 10v30a10 10 0 0 1-10 10H58l-18 14v-14h-6a10 10 0 0 1-10-10V46a10 10 0 0 1 10-10z" fill="#ffffff"/>
<circle cx="48" cy="61" r="5" fill="#2f6fed"/>
<circle cx="64" cy="61" r="5" fill="#2f6fed"/>
<circle cx="80" cy="61" r="5" fill="#2f6fed"/>
</svg>

After

Width:  |  Height:  |  Size: 598 B

View file

@ -0,0 +1,18 @@
# SPDX-License-Identifier: GPL-3.0-only
# SPDX-FileCopyrightText: Copyright (C) 2026 Catcrafts®
[Desktop Entry]
Type=Application
Name=Messages
GenericName=Text messages
Comment=Send and receive text messages over imsd
Exec=imsd-messages %u
Icon=net.catcrafts.ImsdMessages
Terminal=false
Categories=Network;Chat;
Keywords=SMS;text;message;imsd;
MimeType=x-scheme-handler/sms;
StartupNotify=false
SingleMainWindow=true
X-KDE-FormFactor=handset;tablet;desktop;
X-Purism-FormFactor=Workstation;Mobile;