I' working on an electron application which uses an external script to execute some tasks. I've already packaged it in deb file and install it but when I run it from thermal it looks for the script in the current directory. the script's path is

/usr/lib/app/resources/app

I need a way to run my app form that path whenever it's called (from the terminal or applications menu) the path can't be static because it depends on the user's computer or if it's possible to copy the script some known path with the installation process I used

electron-installer-debian

and

electron-pakager 

any solution?

0 Answers