Closing tab keeps « something » (file descriptor ?) open
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
qpdfview |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Gentoo, qpdfview 0.4.16.
When closing a tab, there still exists « some » link to the opened PDF file. If the file is on a USB key (or anything removable), this prevents unmounting the key since it is still seen as busy. Lsof show the file as still open.
Example : mount a key on /mnt/usb, open several PDF filest in tabs, close tabs (without closing qpdfview), try to unmount the key.
umount: /mnt/usb/: target is busy.
$ lsof /mnt/usb/
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
qpdfview 17596 XXX 18r REG 8,33 3304869 274 /mnt/usb/some path/name.pdf
qpdfview 17596 XXX 21r REG 8,33 120844 280 /mnt/usb/
Note the problem occurs with any file, not only with files from USB keys and the like :
File 02-comments.pdf is from the hard disk, has been opened in a tab then closed.
$ lsof ~/Expertises/
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
qpdfview 17596 XXX 22r REG 254,2 822013 21233927 /home/pyb/
Closing qpdfview closes everything, but this is bothersome if working on several PDF files.
Hello Da Long,
could you check whether the "Keep recently closed " option on the behavior tab of the settings dialog is enabled? If so, qpdfview will only "hide" and really close the most recently viewed tabs. Please try to disable the option and restart the application. Does that fix the observed behavior?
Best regards,
Adam