Compare commits
1 Commits
ep/debug-r
...
av/multipl
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
29857e33e2 |
@@ -68,5 +68,12 @@ fun initHaskell() {
|
|||||||
s.acquire()
|
s.acquire()
|
||||||
pipeStdOutToSocket(socketName)
|
pipeStdOutToSocket(socketName)
|
||||||
|
|
||||||
initHS()
|
var inited = false
|
||||||
|
thread(name = "initHs", isDaemon = true) {
|
||||||
|
initHS()
|
||||||
|
inited = true
|
||||||
|
}
|
||||||
|
while (!inited) {
|
||||||
|
Thread.sleep(2)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,10 +3,7 @@ package chat.simplex.desktop
|
|||||||
import chat.simplex.common.platform.*
|
import chat.simplex.common.platform.*
|
||||||
import chat.simplex.common.showApp
|
import chat.simplex.common.showApp
|
||||||
import java.io.File
|
import java.io.File
|
||||||
import java.nio.file.*
|
import kotlin.concurrent.thread
|
||||||
import java.nio.file.attribute.BasicFileAttributes
|
|
||||||
import java.nio.file.attribute.FileTime
|
|
||||||
import kotlin.io.path.setLastModifiedTime
|
|
||||||
|
|
||||||
fun main() {
|
fun main() {
|
||||||
initHaskell()
|
initHaskell()
|
||||||
@@ -30,7 +27,14 @@ private fun initHaskell() {
|
|||||||
//System.load(File(File(vlcDir, "vlc"), libXcb).absolutePath)
|
//System.load(File(File(vlcDir, "vlc"), libXcb).absolutePath)
|
||||||
System.setProperty("jna.library.path", vlcDir.absolutePath)
|
System.setProperty("jna.library.path", vlcDir.absolutePath)
|
||||||
//discoverVlcLibs(File(File(vlcDir, "vlc"), "plugins").absolutePath)
|
//discoverVlcLibs(File(File(vlcDir, "vlc"), "plugins").absolutePath)
|
||||||
initHS()
|
var inited = false
|
||||||
|
thread(name = "initHs", isDaemon = true) {
|
||||||
|
initHS()
|
||||||
|
inited = true
|
||||||
|
}
|
||||||
|
while (!inited) {
|
||||||
|
Thread.sleep(2)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun windowsLoadRequiredLibs(libsTmpDir: File, vlcDir: File) {
|
private fun windowsLoadRequiredLibs(libsTmpDir: File, vlcDir: File) {
|
||||||
|
|||||||
Reference in New Issue
Block a user