Name: Anonymous 2010-06-13 21:03
been trying to make a script to open up several files using notepad++ but it keeps causing notepad++ to hang.
ttest="\"/home/username/Desktop/Fallout 3.desktop\" /home/username/Desktop/wine.desktop"
env WINEPREFIX="/home/username/nppwine" wine C:\\Program\ Files\\Notepad++\\notepad++.exe $ttest
The space in Fallout 3.desktop seems to be what is causing the problem because when I try multiple files that don't contain any spaces in their path it works fine. I am running those through bash, but they will be implemented into a nautilus script if it ever works as expected. When I use the contents of $ttest it works fine, just not when I use the variable
tl;dr bash script above is messing up when I use $ttest but works fine when I use the contents of $ttest
ttest="\"/home/username/Desktop/Fallout 3.desktop\" /home/username/Desktop/wine.desktop"
env WINEPREFIX="/home/username/nppwine" wine C:\\Program\ Files\\Notepad++\\notepad++.exe $ttest
The space in Fallout 3.desktop seems to be what is causing the problem because when I try multiple files that don't contain any spaces in their path it works fine. I am running those through bash, but they will be implemented into a nautilus script if it ever works as expected. When I use the contents of $ttest it works fine, just not when I use the variable
tl;dr bash script above is messing up when I use $ttest but works fine when I use the contents of $ttest