ififfy / flipflip

Random slideshow of local images. Electron app for Mac/Windows/Linux
MIT License
160 stars 43 forks source link

Start scene from command line should also filter flipflip.exe #330

Open capsinc opened 10 months ago

capsinc commented 10 months ago

To enable starting scenes from commandline, from other automation the argument filter should also include "flipflip.exe" Otherwise, on Windows it will attempt to start non-existent scene "path\to\FlipFlip.exe" Temporary workaround was to rename flipflip.exe to electron.exe

main.ts line 27 const sceneName = process.argv.find((el, i, arr) => el != '--no-dev-tools' && !el.endsWith('electron.exe') && !el.endsWith('bundle.js'));

Should become

const sceneName = process.argv.find((el, i, arr) => el != '--no-dev-tools' && !el.endsWith('electron.exe') && !el.endsWith('FlipFlip.exe') && !el.endsWith('bundle.js'));