Firefox: open .pdf files with acrordrdc (installed by snap)
I'm trying to open .pdf files in Firefox with acrordrdc installed via snap. I tried:
Since
acrordrdc file.pdfworks I tried using a "wrapper" file:#!/bin/bash acrordrdc $1Editing the
acrordrdc.desktop(see Changing default app for PDF).
In the first case (the wrapper solution) acrordrdc opens with an empty window. No file is showed.
In the second case I can select "Acrobat Reader DC" in Firefox but nothing happens when the files is downloaded. Acrobat is not opened.
Edit. After the N0rbert answer I tried to modify my wrapper:
#!/bin/bash
cp $i ~/Downloads/renamed.pdf
acrordrdc ~/Downloads/renamed.pdfand now it works. Now I need to find a way to remove the file(s) after I read it (them).
I don't understand why I need to rename it. If I have:
#!/bin/bash
cp $i ~/Downloads/$1
acrordrdc ~/Downloads/$1it doesn't work. The file is copied but not opened.
62 Answers
After some debugging in Ubuntu MATE 20.04 LTS I discovered that Firefox copies PDF file of interest to the /tmp folder.
The /tmp folder can't be accessed by this snapped application. Wrapper script does not help either. So it is impossible to integrate /snap/bin/acrordrdc with Firefox.
I'll recommend to remove snapped version of Adobe Acrobat with
snap remove acrordrdcand install native pretty old deb-based version of Adobe Reader 9.5.5 by:
cd ~/Downloads
wget ftp://
sudo apt-get install ./AdbeRdr9.5.5-1_i386linux_enu.deb
sudo apt-get install libxml2:i386 gtk2-engines-murrine:i386 gtk2-engines-pixbuf:i386 libcanberra-gtk-module:i386 libatk-bridge2.0-0:i386 libatk-adaptor:i386and then choose it in the Firefox settings.
3I finally managed to get a wrapper to work. It has to do these steps:
If no argument given, call acrordrdc and exit.
If the target file (“$1”) is not located below /home, copy it to a location in your home directory and change the target name.
Convert the target name to DOS (eg. Z:\home\msohnius\tmp\file.pdf).
Call acrordrdc with this new argument.