We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parenta8bff3e commit8bfee5eCopy full SHA for 8bfee5e
build.gradle.kts
@@ -202,21 +202,13 @@ tasks.register("cleanAll", Delete::class.java) {
202
203
privatefungetPluginInstallDir():Path {
204
val userHome=System.getProperty("user.home").let {Path.of(it) }
205
-valtoolboxCachesDir=when {
+valpluginsDir=when {
206
SystemInfoRt.isWindows->System.getenv("LOCALAPPDATA")?.let {Path.of(it) }?: (userHome/"AppData"/"Local")
207
// currently this is the location that TBA uses on Linux
208
SystemInfoRt.isLinux->System.getenv("XDG_DATA_HOME")?.let {Path.of(it) }?: (userHome/".local"/"share")
209
SystemInfoRt.isMac-> userHome/"Library"/"Caches"
210
else-> error("Unknown os")
211
- }/"JetBrains"/"Toolbox"
212
-
213
-val pluginsDir=when {
214
-SystemInfoRt.isWindows||
215
-SystemInfoRt.isLinux||
216
-SystemInfoRt.isMac-> toolboxCachesDir
217
218
-else-> error("Unknown os")
219
- }/"plugins"
+ }/"JetBrains"/"Toolbox"/"plugins"
220
221
return pluginsDir/ extension.id
222
}