From 862a5e73e480ac11d06cb51b4d031378a21aaef2 Mon Sep 17 00:00:00 2001 From: Simon Chopin Date: Fri, 3 Apr 2026 10:29:09 +0200 Subject: [PATCH 1/2] settings: use standard Unicode for the default icons While Awesome font icons are great, the user needs to set up the proper font in order to use them, which makes for a terrible first impression. Also, some of those were deprecated and not available in some of the latest Nerd fonts (the one used for the attachments, for instance) --- dodo/settings.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/dodo/settings.py b/dodo/settings.py index c112eb2..4c96ab7 100644 --- a/dodo/settings.py +++ b/dodo/settings.py @@ -244,14 +244,14 @@ """ tag_icons = { - 'inbox': '', - 'unread': '', - 'attachment': '', + 'inbox': '📥', + 'unread': '✉', + 'attachment': '📎', 'sent': '>', - 'replied': '', - 'flagged': '', - 'marked': '', - 'signed': '', + 'replied': '↩', + 'flagged': '⚐', + 'marked': '⏺', + 'signed': '✎', } """Tag icons From 9b7875845876db4bba21faf441955f0a014a4b47 Mon Sep 17 00:00:00 2001 From: Simon Chopin Date: Fri, 3 Apr 2026 10:31:42 +0200 Subject: [PATCH 2/2] settings: use `xdg-open` rather than nautilus More portable, as most Unix desktop environments will have this do the right thing, and not everyone uses Gnome. V2: Switch to xdg-open on Linux environments as open is a Debianism (+Mac) Co-authored-by: Freya Bruhin --- dodo/settings.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dodo/settings.py b/dodo/settings.py index 4c96ab7..e51ab92 100644 --- a/dodo/settings.py +++ b/dodo/settings.py @@ -35,6 +35,7 @@ from . import themes from typing import Literal, Dict, Union +import sys # functional email_address: Union[str, Dict[str, str]] = '' @@ -67,7 +68,8 @@ which is passed the name of a temp file being edited while composing an email. """ -file_browser_command = "nautilus '{dir}'" +_open_command = "open" if sys.platform == "darwin" else "xdg-open" +file_browser_command = f"{_open_command} '{dir}'" """Command used to launch external file browser This is a shell command, which additionally takes the `{dir}` placeholder. This