Open with Wine/Photoshop not working properly

I am running Photoshop CS2 under Ubuntu 10.10 with Wine 1.3.23. I would like to be able to associate various file types with Photoshop. I'd previously used this script:

#!/bin/sh
QUICKPARLOCATION="c:\\Program Files\\Adobe\\Adobe Photoshop CS2\\Photoshop.exe"
PARAM=`winepath -w "$*"`
wine "$QUICKPARLOCATION" "$PARAM"
exit 0

If I make this script be the customer command that's tied to "Open With," Photoshop launches, but doesn't appear to be properly passing the file name, so that file doesn't open. I'd had this working previously under earlier versions of Ubuntu and wine.

P.S. please no commentary on using GIMP or other Photoshop alternatives

0

1 Answer

The custom command should be possible in one string without needing a script.

The following custom command will launch photoshop via wine:

wine "c:\\program files\\adobe\\adobe photoshop cs2\\photoshop.exe" \"z:%f\"

The key part is the last part \"z:%f\

  • %f passes the filename selected.
  • Prefixing z: does the same as winepath -w for a file which you double-click.
1

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like