Comment 6 for bug 1756894

Revision history for this message
Toan Nguyen (dtoan96) wrote :

This is the desktop file:

[Desktop Entry]
Type=Application
Terminal=false
Name=qpdfview
Icon=qpdfview
GenericName=tabbed document viewer
Comment=A tabbed document viewer using Qt and the Poppler library.
Categories=Viewer;Office;
Keywords=viewer;document;presentation;pdf;ps;djvu;
TryExec=qpdfview
Exec=qpdfview --unique %F
MimeType=application/pdf;application/x-pdf;text/pdf;text/x-pdf;image/pdf;image/x-pdf;application/postscript;image/vnd.djvu;image/x-djvu;
Actions=ChooseInstance;NonUniqueInstance;

[Desktop Action ChooseInstance]
Name=Choose instance
Exec=qpdfview --unique --choose-instance %F

[Desktop Action NonUniqueInstance]
Name=Non-unique instance
Exec=qpdfview %F

-------------------

This is the result of ps -aux | grep qpdfview (I selected two files name "3_574-577.pdf" and "Chapter 23.pdf" then pressed enter):

dtoan 3837 14.0 1.7 851776 69124 ? Sl 18:07 0:00 qpdfview --unique /home/dtoan/Documents/Chapter 23.pdf
dtoan 3853 0.0 0.0 22664 1032 pts/0 R+ 18:07 0:00 grep --color=auto qpdfview