hst/enablement: editor friendly enablement adaptor
All checks were successful
Test / Create distribution (push) Successful in 35s
Test / Hakurei (push) Successful in 45s
Test / Hpkg (push) Successful in 3m17s
Test / Sandbox (push) Successful in 43s
Test / Hakurei (race detector) (push) Successful in 45s
Test / Sandbox (race detector) (push) Successful in 43s
Test / Flake checks (push) Successful in 1m27s
All checks were successful
Test / Create distribution (push) Successful in 35s
Test / Hakurei (push) Successful in 45s
Test / Hpkg (push) Successful in 3m17s
Test / Sandbox (push) Successful in 43s
Test / Hakurei (race detector) (push) Successful in 45s
Test / Sandbox (race detector) (push) Successful in 43s
Test / Flake checks (push) Successful in 1m27s
Having the bit field value here (in decimal, no less) is unfriendly to text editors. Use a bunch of booleans here to improve ease of use. Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
@@ -126,7 +126,7 @@
|
||||
wayland-utils
|
||||
];
|
||||
command = "foot";
|
||||
capability = {
|
||||
enablements = {
|
||||
dbus = false;
|
||||
pulse = false;
|
||||
};
|
||||
@@ -141,7 +141,7 @@
|
||||
share = pkgs.foot;
|
||||
packages = [ ];
|
||||
command = "foot";
|
||||
capability = {
|
||||
enablements = {
|
||||
dbus = false;
|
||||
pulse = false;
|
||||
};
|
||||
@@ -154,7 +154,7 @@
|
||||
share = pkgs.foot;
|
||||
packages = [ pkgs.foot ];
|
||||
command = "foot";
|
||||
capability.dbus = false;
|
||||
enablements.dbus = false;
|
||||
};
|
||||
|
||||
"cat.gensokyo.extern.Alacritty.x11" = {
|
||||
@@ -171,7 +171,7 @@
|
||||
mesa-demos
|
||||
];
|
||||
command = "alacritty";
|
||||
capability = {
|
||||
enablements = {
|
||||
wayland = false;
|
||||
x11 = true;
|
||||
dbus = false;
|
||||
@@ -192,7 +192,7 @@
|
||||
wayland-utils
|
||||
];
|
||||
command = "foot";
|
||||
capability = {
|
||||
enablements = {
|
||||
dbus = false;
|
||||
pulse = false;
|
||||
};
|
||||
@@ -204,7 +204,7 @@
|
||||
verbose = true;
|
||||
share = pkgs.strace;
|
||||
command = "strace true";
|
||||
capability = {
|
||||
enablements = {
|
||||
wayland = false;
|
||||
x11 = false;
|
||||
dbus = false;
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
share = pkgs.foot;
|
||||
packages = [ pkgs.foot ];
|
||||
command = "foot";
|
||||
capability = {
|
||||
enablements = {
|
||||
dbus = false;
|
||||
pulse = false;
|
||||
};
|
||||
|
||||
10
test/test.py
10
test/test.py
@@ -206,7 +206,7 @@ wait_for_window(f"u0_a{aid(0)}@machine")
|
||||
machine.send_chars("clear; wayland-info && touch /tmp/client-ok\n")
|
||||
machine.wait_for_file(tmpdir_path(0, "client-ok"), timeout=15)
|
||||
collect_state_ui("foot_wayland")
|
||||
check_state("ne-foot", 1)
|
||||
check_state("ne-foot", {"wayland": True})
|
||||
# Verify lack of acl on XDG_RUNTIME_DIR:
|
||||
machine.fail(f"getfacl --absolute-names --omit-header --numeric /run/user/1000 | grep {aid(0) + 1000000}")
|
||||
machine.send_chars("exit\n")
|
||||
@@ -219,7 +219,7 @@ wait_for_window(f"u0_a{aid(1)}@machine")
|
||||
machine.send_chars("clear; pactl info && touch /tmp/pulse-ok\n")
|
||||
machine.wait_for_file(tmpdir_path(1, "pulse-ok"), timeout=15)
|
||||
collect_state_ui("pulse_wayland")
|
||||
check_state("pa-foot", 9)
|
||||
check_state("pa-foot", {"wayland": True, "pulse": True})
|
||||
machine.send_chars("exit\n")
|
||||
machine.wait_until_fails("pgrep foot", timeout=5)
|
||||
|
||||
@@ -229,7 +229,7 @@ wait_for_window(f"u0_a{aid(0)}@machine")
|
||||
machine.send_chars("clear; glinfo && touch /tmp/x11-ok\n")
|
||||
machine.wait_for_file(tmpdir_path(0, "x11-ok"), timeout=15)
|
||||
collect_state_ui("alacritty_x11")
|
||||
check_state("x11-alacritty", 2)
|
||||
check_state("x11-alacritty", {"x11": True})
|
||||
machine.send_chars("exit\n")
|
||||
machine.wait_until_fails("pgrep alacritty", timeout=5)
|
||||
|
||||
@@ -239,7 +239,7 @@ wait_for_window(f"u0_a{aid(3)}@machine")
|
||||
machine.send_chars("clear; wayland-info && touch /tmp/direct-ok\n")
|
||||
collect_state_ui("foot_direct")
|
||||
machine.wait_for_file(tmpdir_path(3, "direct-ok"), timeout=15)
|
||||
check_state("da-foot", 1)
|
||||
check_state("da-foot", {"wayland": True})
|
||||
# Verify acl on XDG_RUNTIME_DIR:
|
||||
print(machine.succeed(f"getfacl --absolute-names --omit-header --numeric /run/user/1000 | grep {aid(3) + 1000000}"))
|
||||
machine.send_chars("exit\n")
|
||||
@@ -259,7 +259,7 @@ machine.send_key("alt-h")
|
||||
machine.send_chars("clear; hakurei show $(hakurei ps --short) && touch /tmp/ps-show-ok && exec cat\n")
|
||||
machine.wait_for_file("/tmp/ps-show-ok", timeout=5)
|
||||
collect_state_ui("foot_wayland_term")
|
||||
check_state("ne-foot", 1)
|
||||
check_state("ne-foot", {"wayland": True})
|
||||
machine.send_key("alt-l")
|
||||
machine.send_chars("exit\n")
|
||||
wait_for_window("alice@machine")
|
||||
|
||||
Reference in New Issue
Block a user