1

I have the following error message in AR XI :

There was an error opening this document. This file cannot be found

when I try to open a pdf document by clicking-right on it, both with default application or special script.

If the document is in the last folder I used in AR, it works fine, but if I try to open a file in another directory, I have this error message.

The script I use :

#!/bin/bash
/usr/bin/wine "C:\\Program Files\Adobe\Reader 11.0\Reader\AcroRd32.exe" $1

the desktop file :

[Desktop Entry]
Name=Adobe Reader XI
Exec=env WINEPREFIX="/home/nico/.wine" wine C:\\\\Program\\ Files\\\\Adobe\\\\Reader\\ 11.0\\\\Reader\\\\AcroRd32.exe %f
Type=Application
StartupNotify=true

1 Answer 1

1

Simply use your script in your desktop file:

Exec="full_path_and_script_name" %f

and change your script to:

#!/bin/bash
/usr/bin/wine "C:\\Program Files\Adobe\Reader 11.0\Reader\AcroRd32.exe" "$1"

Note the double quotes for $1.

1
  • It's better. The script works every where, the .desktop file works like before.
    – Tarass
    Aug 3, 2015 at 14:36

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .