Files
ports/misc/py-oterm/files/patch-src_oterm_utils.py
T
Nicola Vitale c6ddaea030 misc/py-oterm: Update to 0.14.7
- Update list of run-dependencies

ChangeLog:	https://github.com/ggozad/oterm/releases/tag/0.14.7
Reported by:	Yiorgis Gozadinos <notifications@github.com>
2026-01-21 15:22:55 +01:00

28 lines
803 B
Python

--- src/oterm/utils.py.orig 2020-02-02 00:00:00 UTC
+++ src/oterm/utils.py
@@ -1,6 +1,7 @@ import sys
import asyncio
import os
import sys
+import platform
from collections.abc import Callable
from functools import wraps
from importlib import metadata
@@ -118,6 +119,7 @@ def get_default_data_dir() -> Path:
system_paths = {
"win32": home / "AppData/Roaming/oterm",
+ "FreeBSD": Path(os.getenv("XDG_DATA_HOME") or Path(home / ".local/share")),
"linux": Path(os.getenv("XDG_DATA_HOME") or Path(home / ".local/share"))
/ "oterm",
"darwin": Path(
@@ -126,7 +128,7 @@ def get_default_data_dir() -> Path:
/ "oterm",
}
- data_path = system_paths[sys.platform]
+ data_path = system_paths[platform.system()]
return data_path