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
7 changes: 0 additions & 7 deletions leads_vec/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
parser.add_argument("--emu", action=_BooleanOptionalAction, default=False, help="use emulator")
parser.add_argument("--auto-mfs", action=_BooleanOptionalAction, default=False,
help="automatically magnify font sizes to match the original proportion")
parser.add_argument("--xws", action=_BooleanOptionalAction, default=False, help="use X Window System")
parser.add_argument("--ignore-import-error", action=_BooleanOptionalAction, default=False,
help="ignore `ImportError`")
args = parser.parse_args()
Expand Down Expand Up @@ -85,12 +84,6 @@
if args.auto_mfs:
config.auto_magnify_font_sizes()
_register_config(config)
if args.xws:
from ._bootloader import configure_xws as _configure_xws

_configure_xws()
_L.info("X Window System configured")

from leads_vec.cli import main

if args.action == "replay":
Expand Down
1 change: 0 additions & 1 deletion leads_vec/_bootloader/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
from leads_vec._bootloader.frp import *
from leads_vec._bootloader.systemd import *
from leads_vec._bootloader.xws import *
3 changes: 2 additions & 1 deletion leads_vec/_bootloader/leads_vec.service.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ fi
while ! xhost >& /dev/null
do sleep 1
done
# configure xws
/usr/bin/xhost +SI:localuser:"$USERNAME"
# change the interpreter or adjust the arguments according to your needs
# do not use `--xws`
python-leads -m leads_vec -c /usr/local/leads/config.json run
1 change: 1 addition & 0 deletions leads_vec/_bootloader/systemd.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ def create_service() -> None:
"[Service]\n"
"Type=simple\n"
f"User={(user := _get_login())}\n"
f"Environment=\"USERNAME={user}\"\n"
"Environment=\"DISPLAY=:0\"\n"
f"Environment=\"XAUTHORITY=/home/{user}/.Xauthority\"\n"
f"ExecStart=/bin/bash {script}\n"
Expand Down
10 changes: 0 additions & 10 deletions leads_vec/_bootloader/xws.py

This file was deleted.

2 changes: 1 addition & 1 deletion readthedocs