mirror of
https://codeberg.org/fairyglade/ly.git
synced 2026-08-09 15:19:13 +02:00
wtf
This commit is contained in:
parent
e5991abe13
commit
2a31f19baa
1 changed files with 4 additions and 4 deletions
|
|
@ -1271,10 +1271,10 @@ fn quit(ptr: *anyopaque) !bool {
|
|||
|
||||
fn customCommand(ptr: *anyopaque) !bool {
|
||||
const lbl: *CustomLabel = @ptrCast(@alignCast(ptr));
|
||||
var proc = std.process.Child.init(&[_][]u8 {
|
||||
@constCast("/bin/sh"),
|
||||
@constCast("-c"),
|
||||
@constCast(lbl.cmd.cmd)
|
||||
var proc = std.process.Child.init(&[_][]const u8 {
|
||||
"/bin/sh",
|
||||
"-c",
|
||||
lbl.cmd.cmd
|
||||
}, lbl.lbl.allocator.?);
|
||||
proc.stdout_behavior = .Ignore;
|
||||
proc.stderr_behavior = .Ignore;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue