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
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ release is checked here and released on by hand.

- iPhones: the control center's battery page shows the battery size in mAh (AryaVora621).

- Apps that run in a terminal, and the menu's Install or Remove Package
entries, open in foot. They did nothing before: xdg-terminal-exec was
called but not installed, and no default terminal was named (ozz1ee-dev).

## [0.4.10] - 2026-12-05

Built on orchard 0.3.24.
Expand Down
3 changes: 3 additions & 0 deletions system/overlay/etc/xdg/xdg-terminals.list
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# The tablet's terminal is foot. Desktop entries with Terminal=true, and
# menu actions that call xdg-terminal-exec, use this list.
foot.desktop
27 changes: 27 additions & 0 deletions tests/test_xdg_terminals.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
"""xdg-terminal-exec is pointed at foot, so Terminal=true entries have a terminal."""
from pathlib import Path
import unittest

PROJECT = Path(__file__).resolve().parents[1]
LIST = PROJECT / 'system/overlay/etc/xdg/xdg-terminals.list'


class XdgTerminals(unittest.TestCase):
def test_the_system_list_names_foot(self):
text = LIST.read_text()
names = [line.strip() for line in text.splitlines()
if line.strip() and not line.lstrip().startswith('#')]
self.assertEqual(names, ['foot.desktop'])

def test_the_package_installs_the_list(self):
import sys
sys.path.insert(0, str(PROJECT))
from package_tree import system_files
files = system_files()
self.assertIn('etc/xdg/xdg-terminals.list', files)
self.assertEqual(files['etc/xdg/xdg-terminals.list'][0], LIST.read_bytes())
self.assertEqual(files['etc/xdg/xdg-terminals.list'][1], 0o644)


if __name__ == '__main__':
unittest.main()
Loading