diff options
| author | Danilo M. <danix@danix.xyz> | 2026-05-03 15:35:46 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-05-03 15:35:46 +0200 |
| commit | 273915dafd51c0ef7aa1ac3f74cb6192497b9b09 (patch) | |
| tree | 8aa967c54f1088184cb2c32f531f3afbae4efc63 /core | |
| parent | e28ebf9f0d2aaa9a6819f5a09cac05953080c1e9 (diff) | |
| download | publisher-273915dafd51c0ef7aa1ac3f74cb6192497b9b09.tar.gz publisher-273915dafd51c0ef7aa1ac3f74cb6192497b9b09.zip | |
feat: add typora_args config field for Wayland launch flags
Allows passing extra CLI args (e.g. --ozone-platform=wayland) to Typora
at launch without baking them into the binary path.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'core')
| -rw-r--r-- | core/config.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/config.py b/core/config.py index 76ea3ba..68a8b87 100644 --- a/core/config.py +++ b/core/config.py @@ -10,6 +10,7 @@ class Config: blog_repo: str = "" transart_script: str = "/home/danix/bin/transart.py" typora_bin: str = "typora" + typora_args: str = "" font_size: int = 10 def is_complete(self) -> bool: @@ -21,6 +22,7 @@ class Config: doc.add("blog_repo", self.blog_repo) doc.add("transart_script", self.transart_script) doc.add("typora_bin", self.typora_bin) + doc.add("typora_args", self.typora_args) doc.add("font_size", self.font_size) path.write_text(tomlkit.dumps(doc)) @@ -34,5 +36,6 @@ class Config: blog_repo=str(data.get("blog_repo", defaults.blog_repo)), transart_script=str(data.get("transart_script", defaults.transart_script)), typora_bin=str(data.get("typora_bin", defaults.typora_bin)), + typora_args=str(data.get("typora_args", defaults.typora_args)), font_size=int(data.get("font_size", defaults.font_size)), ) |
