Created attachment 102131 [details]
Screenshot of saving document to tmp folder when opened from Lotus Notes
Documents opened from webmail application are saved in a temporary directory. After reboot or some time, this folder is emptied (hence the name "temporary" directory), losing the users document.
Steps to reproduce:
1. Create document
2. Email document to yourself
3. Open the document directly from within webmail or email client (tested on gmail and lotus notes)
4. Save the document
5. Go to the application's temporary folder and locate the document. (or click "Save As" and note the location)
When a document is opened from most webmail/desktop email clients, the working copy is stored in a temporary folder. When the user saves this document, it is saved in the temporary folder.
The save button function in LibreOffice should inspect the path and if it finds the word: TEMP, TMP, tmp, temp, temporary, etc. (a regular expression would probably be good here) in the path it should either:
1) warn the user that this is a temporary location with a message "Are you sure you want to save here? "
2) Pull up the "Save As.." dialog with the path set to the default save location, eg Desktop directory, Documents directory, etc
Operating System: All
Version: 184.108.40.206 release
marked as enhancement request
reproducible with LO 220.127.116.11 (Win 8.1)
Still reproducible using version 18.104.22.168 on Linux x64
Tested with Ubuntu 16.04 and Thunderbird 45.5.
The situation is much better now. Thunderbird (well, actually GTK I think) saves in a temporary, read-only file. An Edit Read-only document notice informs the user(bug 61356), and the save-as defaults to the documents folder.
Tested downloading attachment from Gmail and it behaved the same as Thunderbird. Also tested Gmail under Windows and it behaved similarly. The file was saved to the system's temp folder as read-only, but in this case LO suggested saving in the temp folder.
So the enhancement request could still stand that if the suggested folder matches the environment variable's TEMP folder that the default folder be chosen instead.
proposed fix: https://gerrit.libreoffice.org/33353 tdf#80807 guisaveas: never recommend system's tempdir
Justin Luth committed a patch related to this issue.
It has been pushed to "master":
tdf#80807 guisaveas: never recommend system's tempdir
It will be available in 5.4.0.
The patch should be included in the daily builds available at
http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
Affected users are encouraged to test the fix and report feedback.
Confirmed that a Save now brings up Save as, when trying to save a document opened from email client.
Win 7 Pro 64-bit Version: 22.214.171.124.alpha0+
Build ID: 83e059af2203ec0cd15dea08cfa538555ba14bd7
CPU Threads: 4; OS Version: Windows 6.1; UI Render: default;
TinderBox: Win-x86@42, Branch:master, Time: 2017-02-06_23:34:43
Locale: fi-FI (fi_FI); Calc: group
Just to clarify: the directory offered upon Save as was not AppData\Local\Temp