JAL-3599 fixed placement of 'First Run' file for chromium profile
authorBen Soares <b.soares@dundee.ac.uk>
Fri, 9 Jun 2023 14:12:51 +0000 (15:12 +0100)
committerBen Soares <b.soares@dundee.ac.uk>
Fri, 9 Jun 2023 14:12:51 +0000 (15:12 +0100)
build.gradle

index 679fb14..e0c80e3 100644 (file)
@@ -4219,8 +4219,9 @@ task jalviewjsCopyStderrLaunchFile(type: Copy) {
 }
 
 task jalviewjsChromiumProfile {
-  def profileDir = "${jalviewjsBuildDir}/${jalviewjs_chromium_user_dir}/${jalviewjs_chromium_profile_name}"
-  def firstRun = file("${profileDir}/First Run")
+  def userDir = "${jalviewjsBuildDir}/${jalviewjs_chromium_user_dir}"
+  def profileDir = "${userDir}/${jalviewjs_chromium_profile_name}"
+  def firstRun = file("${userDir}/First Run")
 
   doFirst {
     mkdir profileDir
@@ -4267,9 +4268,9 @@ task jalviewjsLaunchTest(type: Exec) {
 
   executable(chromiumBinary)
   args([
-    "--no-sandbox",
-    "--disable-gpu",
+    "--no-sandbox", // --no-sandbox IS USED BY THE THORIUM APPIMAGE ON THE BUILDSERVER
     "--headless=new",
+    "--disable-gpu",
     "--timeout=60000",
     "--virtual-time-budget=60000",
     "--user-data-dir=${jalviewjsBuildDir}/${jalviewjs_chromium_user_dir}",