Skip to content

Commit

Permalink
fix: libdecor decoration
Browse files Browse the repository at this point in the history
  • Loading branch information
litwak913 committed Jan 31, 2025
1 parent 9874e4d commit df12e4b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/src/cn/harryh/arkpets/concurrent/ProcessPool.java
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,10 @@ public Future<ProcessResult> submit(Class<?> clazz, List<String> jvmArgs, List<S
command.addAll(args);
// Process execution
ProcessBuilder builder = new ProcessBuilder(command);
// Some fix on libdecor
Map<String, String> env = builder.environment();
env.remove("GDK_BACKEND");
env.put("LIBDECOR_FORCE_CSD", "1");
Process process = builder.inheritIO().start();
int exitValue = process.waitFor();
return new ProcessResult(exitValue, process.pid());
Expand Down

0 comments on commit df12e4b

Please sign in to comment.