Re: Useful bash scripts for wine / need help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> 1. Don't use readlink - you don't need to dereference symlinks yourself 


I need the scripts to work in 3 cases:

1) wine-createshortcut /media/sdaX/Programs/myapp.exe (Absolute paths. Useful when launching the script from a file manager.)

2) wine-createshortcut myapp.exe (For files in the current directory. Useful when you're in console.)

3) wine-createshortcut ./Programs/myapp.exe (Relative paths. Useful when you're in console too.)

readlink will always resolve anything to the absolute path. It will simply work in all 3 cases, so I see no reason for not using it.

Apart from that, thank you very much for your tips! It seems to work now. :)






[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux