From f2acb8bbfcdf319f5bc87728c2b0a34c574d5146 Mon Sep 17 00:00:00 2001 From: master3395 Date: Tue, 20 Jan 2026 00:47:49 +0100 Subject: [PATCH] Fix pluginInstaller encoding issues and installation timing - Add UTF-8 encoding to all file operations in pluginInstaller - Fix ASCII codec error in removeFromSettings and removeFromURLs - Add 2 second delay after installation to allow filesystem sync - Fix fileinput.input encoding issue in removeFromURLs - Update uninstall confirmation message to warn about data deletion - Fixes plugin installation and uninstallation from store --- pluginHolder/views.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pluginHolder/views.py b/pluginHolder/views.py index a2ee835b7..185a46743 100644 --- a/pluginHolder/views.py +++ b/pluginHolder/views.py @@ -715,6 +715,10 @@ def install_from_store(request, plugin_name): # Install using pluginInstaller (direct call, not via command line) pluginInstaller.installPlugin(plugin_name) + # Wait a moment for file system to sync and service to restart + import time + time.sleep(2) + # Verify plugin was actually installed pluginInstalled = '/usr/local/CyberCP/' + plugin_name if not os.path.exists(pluginInstalled):