@@ -1180,9 +1180,11 @@ void PluginInfoComponent::run()
1180
1180
{
1181
1181
LOGC (" Download Successful!" );
1182
1182
1183
+ String pluginVer = pInfo.selectedVersion .substring (0 , pInfo.selectedVersion .indexOf (" -API" ));
1184
+
1183
1185
showAlertOnMessageThread (AlertWindow::InfoIcon,
1184
1186
" [Plugin Installer] " + pInfo.displayName ,
1185
- pInfo.displayName + " Installed Successfully" );
1187
+ pInfo.displayName + " v " + pluginVer + " Installed Successfully! " );
1186
1188
1187
1189
updateUIOnMessageThread ();
1188
1190
}
@@ -1654,7 +1656,7 @@ int PluginInfoComponent::downloadPlugin (const String& plugin, const String& ver
1654
1656
// Copy only if shared files exist
1655
1657
if (fs::exists (tempSharedPath))
1656
1658
{
1657
- #ifdef JUCE_WINDOWS || JUCE_MAC
1659
+ #if JUCE_WINDOWS || JUCE_MAC
1658
1660
const auto copyOptions = fs::copy_options::overwrite_existing
1659
1661
| fs::copy_options::recursive
1660
1662
| fs::copy_options::copy_symlinks;
@@ -1686,6 +1688,23 @@ int PluginInfoComponent::downloadPlugin (const String& plugin, const String& ver
1686
1688
return 5 ;
1687
1689
}
1688
1690
1691
+ #if JUCE_LINUX
1692
+ // Add shared library directory to LD_LIBRARY_PATH before loading plugin
1693
+ setStatusMessage (" Setting up library path..." );
1694
+
1695
+ File sharedDir = getSharedDirectory ();
1696
+ String currentPath = SystemStats::getEnvironmentVariable (" LD_LIBRARY_PATH" , " " );
1697
+ String newPath = sharedDir.getFullPathName ();
1698
+
1699
+ if (! currentPath.contains (newPath))
1700
+ {
1701
+ if (! currentPath.isEmpty ())
1702
+ newPath += " :" + currentPath;
1703
+
1704
+ setenv (" LD_LIBRARY_PATH" , newPath.toRawUTF8 (), 1 );
1705
+ }
1706
+ #endif
1707
+
1689
1708
LOGD (" Loading plugin: " , pInfo.displayName , " from " , pluginDllPath);
1690
1709
1691
1710
int retCode = -1 ;
0 commit comments