I have no memory of how npm works. Does “dev” refer to a project folder or something? Does it need absolute paths put into the script? You could do a test by replacing the contents of the script with something more familiar that you know should launch (xfce-terminal, for example). Then we can break the issue down from there.
Another two obvious things you could check. What keyboard shortcut are you trying to use to launch the script? And are you referring to the script with an absolute path when entering it into the Application Shortcuts menu?
I don’t have access to an XFCE4 install, but I’m curious if our understanding of what “working directory” means is correct. Are you able to launch other programs with your keyboard shortcut, such as thunar or xfce4-terminal?
make the property of ~/.foxtrader executable and also readable and writable by username
give command in session and stage as the following
.foxtrader has the following content:
xfce4-terminal -e “env WINEARCH=“win64” WINEPREFIX=”/home/username/.wine804048" wine64 explorer /desktop=name,3775x2050 /home/username/.wine804048/drive_c/Fox20161226T/FoxTrader-Big5.exe " --hold
3a) build a launcher in panel which has the following executing configuration:
a) name = foxtrader
b) command = /home/username/.foxtrader
c) working directory = /home/username
d) icon = your own choice
ps. Replace username with your own username
My original .foxtrader content is the following:
xfce4-terminal -e “env WINEARCH=“win64” WINEPREFIX=”/home/username/.wine804048" wine64 explorer /desktop=name,3775x2050 /run/media/username/ext4gge/.wine804048/drive_c/Fox20161226T/FoxTrader-Big5.exe " --hold
I tried it in a session and stage launcher, but during the booting i cann’t open external SSD drive ext4gge at a new thunar window, so i have to use key ‘alt + tab’ to change window to terminal to kill this process.
I usually run this proc in a panel launcher.
It is my own habit to assign a hot-key to a program in wine by using ‘xbindkey’, but never to linux system itself.