Skip to content

Commit

Permalink
Added VSCodium chrome-sandbox permission command in Linux.
Browse files Browse the repository at this point in the history
  • Loading branch information
robby-phd committed Oct 23, 2024
1 parent c5208a1 commit 00329fd
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions library/jvm/src/main/scala/org/sireum/Init.scala
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ import Init._
if (javaTempHome.exists) {
javaTempHome.moveTo(javaHome)
} else {
javaTemp.moveTo(javaHome)
javaTemp.moveTo(javaHome)
}
} else {
javaTemp.moveTo(javaHome)
Expand Down Expand Up @@ -994,6 +994,9 @@ import Init._
vscodiumNew.moveTo(vscodium)
replaceImages(vscodium)
(vscodium / "bin" / "codium").moveTo(c)
(vscodium / "codium").moveTo(vscodium / c.name)
c.writeOver(ops.StringOps(c.read).replaceAllLiterally("/codium", "/codeive"))
c.chmod("+x")
println()
ver.write(vscodiumVersion)
updated = T
Expand All @@ -1015,7 +1018,12 @@ import Init._
}
val extDirArg = installExtensions(codium, extensionsDir)
if (updated) {
println(s"To launch CodeIVE: $codium$extDirArg")
val sandbox = vscodium / "chrome-sandbox"
println(s"Please run the following:")
println()
println(s"sudo chown root:root $sandbox; sudo chmod 4755 $sandbox")
println()
println(s"After that, to launch CodeIVE: $codium$extDirArg")
}
}

Expand Down

0 comments on commit 00329fd

Please sign in to comment.