Skip to content
Open
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
18 changes: 10 additions & 8 deletions dodo/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@

from . import themes
from typing import Literal, Dict, Union
import sys

# functional
email_address: Union[str, Dict[str, str]] = ''
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -244,14 +246,14 @@
"""

tag_icons = {
'inbox': '',
'unread': '',
'attachment': '',
'inbox': '📥',
'unread': '',
'attachment': '📎',
'sent': '>',
'replied': '',
'flagged': '',
'marked': '',
'signed': '',
'replied': '',
'flagged': '',
'marked': '',
'signed': '',
}
"""Tag icons

Expand Down