We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 084e76c commit 1ace1f8Copy full SHA for 1ace1f8
1 file changed
flatpak.xsh
@@ -1,12 +1,10 @@
1
"""Flatpak xonshrc: sets up host command forwarding via flatpak-spawn."""
2
-import os
3
4
# 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)
+with @.env.swap(HOST_CMDS="/app/libexec/host-cmds"):
+ if @.imp.os.path.isdir($HOST_CMDS):
+ $PATH.append($HOST_CMDS)
8
9
# Convenience alias: run any command on the host explicitly
10
aliases["host"] = lambda args: ![flatpak-spawn --host @(args)]
11
12
-del _host_cmds
0 commit comments