distribution/packages/multimedia/libbluray/patches/libbluray-03-set-headless-false.patch

24 lines
1.1 KiB
Diff
Raw Normal View History

From 29be28f8062baca2856742a8f7ad2594981cf128 Mon Sep 17 00:00:00 2001
From: Peter Vicman <peter.vicman@gmail.com>
Date: Mon, 27 Sep 2021 19:59:20 +0200
Subject: [PATCH] disable X11 check because it will not run in headless mode
https://github.com/fandangos/libbluray/commit/47726b99922899bb9c4ea688356199f2068d156a
https://github.com/PojavLauncherTeam/PojavLauncher/issues/713#issuecomment-769816262
---
src/libbluray/bdj/bdj.c | 2 ++
1 file changed, 2 insertions(+)
--- a/src/libbluray/bdj/bdj.c
+++ b/src/libbluray/bdj/bdj.c
@@ -903,6 +903,8 @@ static int _create_jvm(void *jvm_lib, co
option[n++].optionString = str_dup ("-Xms256M");
option[n++].optionString = str_dup ("-Xmx256M");
option[n++].optionString = str_dup ("-Xss2048k");
+ option[n++].optionString = str_dup ("-Djava.awt.headless=false");
+ BD_DEBUG(DBG_CRIT | DBG_BDJ, "Disable X11 check\n");
#ifdef HAVE_BDJ_J2ME
option[n++].optionString = str_printf("-Djava.home=%s", java_home);
option[n++].optionString = str_printf("-Xbootclasspath/a:%s/lib/xmlparser.jar", java_home);