summaryrefslogtreecommitdiffstats
path: root/assets/qtmaildir.desktop
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-08-03 15:41:56 +0200
committerDanilo M. <danix@danix.xyz>2026-08-04 12:53:32 +0200
commit3f322bcb2a39baffb004890caa167e6aacbee9a1 (patch)
treeacc3e05d5c70efc551bc9d286378a8c25bca3554 /assets/qtmaildir.desktop
parent9bd2eb0e832ae68ffc15dae6033c5c4543bb8130 (diff)
downloadqtmaildir-3f322bcb2a39baffb004890caa167e6aacbee9a1.tar.gz
qtmaildir-3f322bcb2a39baffb004890caa167e6aacbee9a1.zip
feat: use the application icon
The icon was committed in a previous session and referenced nowhere: no qrc, no .desktop entry, no setWindowIcon. It is wired up now, as a window icon, a desktop entry, and install rules placing both into hicolor and share/applications. resources.qrc belongs to the executable rather than to qtmaildir_lib. A qrc compiled into a static library registers itself from a global initialiser, and the linker discards that object because nothing references it: the build succeeded, qInitResources_resources() was present in the .a, and QFile::exists(":/icons/qtmaildir.svg") still returned false at runtime. Verified loading at 16, 32 and 64 pixels after the move. Toolbar and menu actions take icons from the system theme by their standard names, so they match the rest of the desktop rather than shipping bespoke art. A theme lacking one leaves that action as text, which still works.
Diffstat (limited to 'assets/qtmaildir.desktop')
-rw-r--r--assets/qtmaildir.desktop13
1 files changed, 13 insertions, 0 deletions
diff --git a/assets/qtmaildir.desktop b/assets/qtmaildir.desktop
new file mode 100644
index 0000000..98e435b
--- /dev/null
+++ b/assets/qtmaildir.desktop
@@ -0,0 +1,13 @@
+[Desktop Entry]
+Type=Application
+Version=1.0
+Name=qtmaildir
+GenericName=Mail Reader
+Comment=Read and organize a local notmuch-indexed Maildir
+Exec=qtmaildir
+Icon=qtmaildir
+Terminal=false
+Categories=Network;Email;Qt;
+Keywords=mail;email;notmuch;maildir;
+StartupNotify=true
+StartupWMClass=qtmaildir