feat: add script to fix Electron app permissions and update package configuration
This commit is contained in:
@@ -1,6 +1,13 @@
|
||||
{ pkgs-unstable, pkgs, ... }:
|
||||
let
|
||||
# Create a script to fix electron apps
|
||||
fix-electron-apps = pkgs.writeScriptBin "fix-electron-apps" (builtins.readFile ./fix-electron-apps.sh);
|
||||
in
|
||||
{
|
||||
home.packages = with pkgs; [
|
||||
# Custom scripts
|
||||
fix-electron-apps
|
||||
|
||||
# GUI Application
|
||||
## Utilities
|
||||
mission-center # Task Manager like Windows 11
|
||||
@@ -53,4 +60,23 @@
|
||||
virt-manager
|
||||
virt-viewer
|
||||
];
|
||||
|
||||
|
||||
# Fix for all Electron apps' chrome-sandbox
|
||||
home.activation.fixElectronChromeSandbox = ''
|
||||
echo ""
|
||||
echo "=============================================="
|
||||
echo "IMPORTANT: Electron Applications Notice"
|
||||
echo "=============================================="
|
||||
echo "Some Electron applications (like Vesktop) may need"
|
||||
echo "special permissions to run correctly."
|
||||
echo ""
|
||||
echo "If you encounter issues with Electron apps, run:"
|
||||
echo " fix-electron-apps"
|
||||
echo ""
|
||||
echo "This command will properly set permissions on all"
|
||||
echo "Electron sandbox files in your system."
|
||||
echo "=============================================="
|
||||
echo ""
|
||||
'';
|
||||
}
|
||||
|
Reference in New Issue
Block a user