impl autoexec support for a single script file
This commit is contained in:
parent
6024066488
commit
b35962606d
2 changed files with 17 additions and 1 deletions
|
|
@ -84,7 +84,12 @@ pub fn main() !void {
|
|||
.config = config,
|
||||
});
|
||||
defer context.destroy();
|
||||
|
||||
if (context.config.autoexec_path) |path| {
|
||||
std.log.debug("Path: {s}", .{path});
|
||||
const argv = [_][]const u8{"/bin/sh", "-c", path };
|
||||
var child = std.process.Child.init(&argv, utils.gpa);
|
||||
try child.spawn();
|
||||
}
|
||||
try run(wl_display, context);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue