Hard coded default Open/Save directories?
Categories
(Core :: DOM: Forms, defect)
Tracking
()
People
(Reporter: sexxxenator, Unassigned)
Details
User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:104.0) Gecko/20100101 Firefox/104.0
Steps to reproduce:
Hi,
- I visit a website that asks me to select a file to upload.
- Firefox opens a FileDialog for me to select the file.
Actual results:
- This FileDialog opens in the ~/Desktop directory.
- Since such a ~/Desktop directory does not exists on my machine (I don't want such a directory!), Firefox insists in re-creating this ~/Desktop directory.
This is exactIy the same problem as: https://support.mozilla.org/en-US/questions/985990, but none of the solutions work:
- browser.shell.shortcutFavicons changes nothing
- XDG_DESKTOP_DIR="$HOME" is not what I want: I don't want a Desktop dir at all!
I have add a look at many other error reposts (like: https://bugzilla.mozilla.org/show_bug.cgi?id=1707462) but found no solution...
Expected results:
~/.config/user-dirs.dirs
#XDG_DESKTOP_DIR="$HOME/Desktop"
XDG_DESKTOP_DIR=""
CLEAN SOLUTION: Why isn't firefox asking the current XDG configuration API for where the user wants to Open/Save files ?
WORK AROUND: Why not have a configuration variable browser.upload.dir , as for browser.download.dir ?
Comment 1•4 years ago
|
||
The Bugbug bot thinks this bug should belong to the 'Firefox::File Handling' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Comment 2•4 years ago
|
||
Upload is not managed by filehandler, it's directly managed by dom/html, I see some UploadLastDir code there. It should remember the last used folder, if there isn't one it checks a dom.input.fallbackUploadDir preference, and if it's not set fallbacks to Desktop. So I think setting dom.input.fallbackUploadDir will address your problem
Updated•4 years ago
|
Description
•