Merge pull request #7905 from Friendseeker/sbt-7828

[1.x] Synchronize `java.awt.Desktop.browse()`
This commit is contained in:
eugene yokota 2024-11-22 00:30:59 -05:00 committed by GitHub
commit 0ec6424a51
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 1 deletions

View File

@ -245,7 +245,10 @@ object DependencyTreeSettings {
Def.task {
val uri = uriKey.value
streams.value.log.info(s"Opening ${uri} in browser...")
java.awt.Desktop.getDesktop.browse(uri)
val desktop = java.awt.Desktop.getDesktop
desktop.synchronized {
desktop.browse(uri)
}
uri
}