fix: added os comptime check for running ForkOut
This commit is contained in:
parent
c228995f20
commit
ec524f039c
1 changed files with 11 additions and 9 deletions
|
|
@ -45,6 +45,7 @@ pub fn main(init: std.process.Init) !void {
|
||||||
// I don't like this but it will stay until I review how dispatch works
|
// I don't like this but it will stay until I review how dispatch works
|
||||||
// with zig since I will probably be refactoring there
|
// with zig since I will probably be refactoring there
|
||||||
linux: {
|
linux: {
|
||||||
|
if (comptime os == .linux) {
|
||||||
const xdg_type = init.environ_map.get("XDG_SESSION_TYPE") orelse "";
|
const xdg_type = init.environ_map.get("XDG_SESSION_TYPE") orelse "";
|
||||||
|
|
||||||
if (std.mem.eql(u8, xdg_type, "wayland")) {
|
if (std.mem.eql(u8, xdg_type, "wayland")) {
|
||||||
|
|
@ -57,6 +58,7 @@ pub fn main(init: std.process.Init) !void {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Fallback Clipboard
|
// Fallback Clipboard
|
||||||
var clip = try Clip.OSC52.init(alloc, io, size);
|
var clip = try Clip.OSC52.init(alloc, io, size);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue