Skip to content

Commit 1ace1f8

Browse files
authored
Update flatpak.xsh
1 parent 084e76c commit 1ace1f8

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

flatpak.xsh

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
"""Flatpak xonshrc: sets up host command forwarding via flatpak-spawn."""
2-
import os
32

43
# Add host-spawn symlinks directory to PATH (at the end, so sandbox commands take priority)
5-
_host_cmds = "/app/libexec/host-cmds"
6-
if os.path.isdir(_host_cmds):
7-
$PATH.append(_host_cmds)
4+
with @.env.swap(HOST_CMDS="/app/libexec/host-cmds"):
5+
if @.imp.os.path.isdir($HOST_CMDS):
6+
$PATH.append($HOST_CMDS)
87

98
# Convenience alias: run any command on the host explicitly
109
aliases["host"] = lambda args: ![flatpak-spawn --host @(args)]
1110

12-
del _host_cmds

0 commit comments

Comments
 (0)