question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. ItĀ collects links to all the places you might be looking at while hunting down a tough bug.

And, if youā€™re still stuck at the end, weā€™re happy to hop on a call to see how we can help out.

Custom downloads dir reset to default after prefsCleaner but `browser.download.dir` value is correct? [solved: override browser.download.folderList]

See original GitHub issue

šŸŸ„ https://github.com/arkenfox/user.js/wiki/5.2-Troubleshooting

  • I have read the troubleshooting guide, done the checks and confirmed this is caused by arkenfox
    • unchecked issues may will be closed as invalid

šŸŸŖ REQUIRED INFO

Browser version & OS

Firefox 100.0 / Arch Linux / arkenfox user.js 100

Steps to Reproduce (STR):

  1. Create a new profile with firefox -P
  2. Launch Firefox once using the new profile
  3. Set a custom download directory in Settings > General > Downloads
  4. Close Firefox
  5. Re-open Firefox: the custom download directory is still used in Settings > General
  6. In about:config - browser.download.dir value is correct: image
  7. Close Firefox
  8. Add the following in user-overrides.js:
    user_pref("browser.download.useDownloadDir", true);
    

image 10. Run updater.sh and prefsCleaner.sh 11. Open Firefox 12. In Settings > General > Downloads, the download directory is reset to default (~/Downloads): image 14. Yet, in about:config: browser.download.dir value is still using my custom directory: image

Note: Since I donā€™t have any ~/Downloads directory, when I click on ā€œBrowseā€¦ā€, the file picker starts in my $HOME directory.

If I manually change the download directory again and close Firefox, itā€™s working as expected. But itā€™s reset again after running updater.sh and prefsCleaner.sh.

Expected result:

My custom download directory is persistent after each updater.sh and prefsCleaner.sh run.

Actual result:

My custom download directory is reset to default after each updater.sh and prefsCleaner.sh run.

Anything else you deem worth mentioning:

This started to occur a few days ago with my main profile. My custom download directory was always used before, even after running updater.sh and prefsCleaner.sh.

I also tried different directories but it doesnā€™t make any difference. FWIW, browser.download.lastDir value is also using my custom download directory, even after applying updater.sh and prefsCleaner.sh.

Did I miss any new override(s)?

Thanks.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:13 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
remyabel2commented, May 11, 2022

I believe I identified the issue. I did a diff between prefs.js and the backup and found this preference: browser.download.folderList If this is set to 1, it sets the directory preference to default, setting this to 0 in users-override.js fixes the issue.

Note: I donā€™t fully understands how this preference works so take my comment with a grain of salt.

As far as the Linux perspective goes, I checked the PKGBUILD for Archlinux and they donā€™t set any distro specific preferences.

1reaction
remyabel2commented, May 15, 2022

It is edge case. I do not think the majority of people would be enabling browser.download.useDownloadDir (most of the threads Iā€™ve seen were complaining about new download behavior). Otherwise the setting of browser.download.folderList does not pose a problem from what I can tell.

For troubleshooting, I would just say ā€œcheck the source RPM/PKGBUILD/whatever of your distro to see if they set any vendor preferencesā€.

Read more comments on GitHub >

github_iconTop Results From Across the Web

changes to file download locations in version 98
1 - The system's downloads folder is the default download location. Ā· 2 - The default download location is elsewhere as specified in...
Read more >
python - selenium doesn't set downloaddir in FirefoxProfile
When the Firefox launches with the selenium driver, navigate to about:config and check the look up browser.download.dir , to make sure there was...
Read more >
Add support for changing path to the downloads folder in ...
In my local ,the browser settings>advanced>downloads has the setting 'Ask where to save each file before downloading' disabled. That isĀ ...
Read more >
How To Change Default Download Directory For Firefox ...
Generally default download directory is as below: C:\Users\<UserName>\Downloads. You can always change it through browser setting.
Read more >
Unable to save or download files - MozillaZine Knowledge Base
1 Choose a different download folder; 2 Reset download folder ... Firefox will automatically download files to a default location (e.g.,Ā ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found