From 2afc9375554cfba27ecda0941f0b34d5afd6e540 Mon Sep 17 00:00:00 2001 From: Jarian Cottingham Date: Wed, 18 Feb 2026 21:47:11 -0600 Subject: [PATCH] Added dotenv package and implemented proper .env file loading for Electron application. Fixed API key loading issue. --- main.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main.js b/main.js index ef86bf3..7c81a89 100644 --- a/main.js +++ b/main.js @@ -1,6 +1,10 @@ const { app, BrowserWindow, dialog, ipcMain } = require('electron'); const path = require('path'); const { scanDirectory, extractFileMetadata } = require('./utils/fileUtils'); +const dotenv = require('dotenv'); + +// Load environment variables from .env file +dotenv.config(); // Handle creating/removing shortcuts on Windows when installing/uninstalling. try {