Bug 304736 - Do not remove documents from 'Open Recent' if they are on a drive that is not mounted
Summary: Do not remove documents from 'Open Recent' if they are on a drive that is no...
Status: CONFIRMED
Alias: None
Product: frameworks-kconfigwidgets
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR wishlist
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-07 16:20 UTC by Enda
Modified: 2021-06-19 00:16 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Enda 2012-08-07 16:20:06 UTC
When Okular is started, documents in the 'Open Recent' toolbar
item that are on a drive that is not mounted are removed from the
'Open Recent' menu. Could instead Okular check if the drive is mounted
before removing files that it cannot find (and maybe hide the menu
items of files on a drive that is not mounted)?

Reproducible: Always
Comment 1 Albert Astals Cid 2012-08-07 18:30:14 UTC
Are you suggesting exactly what we do?
Comment 2 Albert Astals Cid 2012-08-09 22:13:03 UTC
Waiting for an answer
Comment 3 Enda 2012-08-10 16:00:13 UTC
Say an external drive is not plugged in when I start Okular, all the recent documents on that external drive in the 'Open Recent' menu are removed.

*Could Okular check if the drive is mounted* before removing files that it cannot find (and maybe hide the menu items of files on a drive that is not mounted)?
Comment 4 Albert Astals Cid 2012-08-10 18:43:55 UTC
Oh i see what you mean, your wording is a bit reversed, at least in my mind. What you want is check if the drive is mounted and if it is not mounted not removing the files.

This has a technical problem, given /some/random/path knowing if it belongs to an external drive or not is kind of difficult, so while i understand your user desire i don't see a quick & easy way to implement it.
Comment 5 Gregor Mi 2014-12-18 10:59:54 UTC
In okular 0.20.3 I observe the following behaviour for a given file:

A)
1) The file is present in the Open Recent list.
2) Close okular.
3) Delete the file.
4) Open okular.
=> The file is _silently_ removed from the Open Recent list.

B)
1) The file is present in the Open Recent list.
2) Do not close okular.
3) Delete the file.
4) Click the corresponding entry in the Open Recent list.
=> A message box appears "Could not open [...]" and the file is removed silently from the Open Recent list.

In case A) okular could act as in case B) but then _ask the user_ if the entry should be deleted.

The silent entry deletion behaviour can also be observed in other applications like Callligra Words.
Comment 6 Nate Graham 2018-08-20 14:26:53 UTC
Not Okular-specific, moving to the right place.
Comment 7 Ahmad Samir 2021-06-19 00:16:41 UTC
IMHO, the recent files menu is not a bookmarks menu, it's supposed to be transient.