summaryrefslogtreecommitdiff
path: root/src/config.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/config.zig')
-rw-r--r--src/config.zig25
1 files changed, 6 insertions, 19 deletions
diff --git a/src/config.zig b/src/config.zig
index f84f438c..b12630e9 100644
--- a/src/config.zig
+++ b/src/config.zig
@@ -203,12 +203,10 @@ pub const leader_path = paths: {
}
if (builtins.EffectCode.enabled) table.set(.EffectCode, null);
if (builtins.TreeContext.enabled) table.set(.TreeContext, null);
- if (pardes.hosted) {
- table.set(.ThemeFile, null);
- table.set(.DumpThemes, null);
- table.set(.Mount, null);
- table.set(.Unmount, null);
- }
+ table.set(.ThemeFile, null);
+ table.set(.DumpThemes, null);
+ table.set(.Mount, null);
+ table.set(.Unmount, null);
if (pardes.can_attach) {
table.set(.Detach, "sD");
table.set(.Adopt, null);
@@ -448,11 +446,11 @@ pub fn defaultShell() []const u8 {
}
fn defaultShellHost() []const u8 {
- if (comptime pardes.hosted) if (std.c.getenv("SHELL")) |s| {
+ if (std.c.getenv("SHELL")) |s| {
const shell = std.mem.span(s);
// One that is not there, or not executable, is no shell: /bin/sh.
if (shell.len > 0 and std.c.access(s, std.c.X_OK) == 0) return shell;
- };
+ }
return "/bin/sh";
}
@@ -1504,8 +1502,6 @@ pub const Runtime = struct {
}
if (find("WindowOpacity").?.enabled(context.capabilities))
try out.print("# Window opacity change pending: {s}\n", .{onOff(state.window_opacity_pending)});
- if (context.capabilities.tagline_font_size and !find("TaglineSize").?.enabled(context.capabilities))
- try out.writeAll("# Tagline size: build-time only\n");
if (context.startup_config_path) |path|
try out.print("# Startup config: {s}\n", .{path})
else
@@ -1811,15 +1807,6 @@ pub const Runtime = struct {
// ...and every one after it a `#` line, which runs as nothing.
var info = std.mem.splitScalar(u8, std.mem.trimEnd(u8, defaults_report[words.len + 2 ..], "\n"), '\n');
while (info.next()) |each| try std.testing.expect(std.mem.startsWith(u8, each, "# "));
-
- defaults_context.platform = "web";
- defaults_context.capabilities.panel_transitions = false;
- defaults_context.capabilities.tagline_font_size = true;
- out = .fixed(&storage);
- try writeReport(&out, defaults_context);
- const web_report = storage[0..out.end];
- try std.testing.expect(std.mem.indexOf(u8, web_report, "# PanelSlide unsupported\n") != null);
- try std.testing.expect(std.mem.indexOf(u8, web_report, "# Tagline size: build-time only\n") != null);
}
};