(linux) where is temp download folder?

413 views
Skip to first unread message

Dreamcat 4

unread,
Mar 11, 2021, 12:14:19 PM3/11/21
to Video DownloadHelper Q&A
hi,
such a great addon thank you.

my problem:

here on linux mozilla with the download helper application (.deb). just want to makw sure the temporary downloading files are not being cached on my boot drive ssd. since that will increase the writes and wear it out faster.

unfortunately i cannot find this location in the settings pages for this addon. udeally it needs to be a static (same folder) each time, that is not randomized or delected like a cache folder. this would enable me to override the location with a symlink. to point to the other drive.

please advise. thanks

Dreamcat4

unread,
Mar 11, 2021, 12:36:53 PM3/11/21
to Video DownloadHelper Q&A
ok,
after some snooping it appears that this plugin (video download
helper), is using the system /tmp folder as the cache folder. And
saves cache files as:

/tmp/vdh.*

it would be nice to have some option to change that. since they can be
a lot larger than other /tmp files
for example to ~/.cache/vdh/ as a static folder location. or to be
user setting override the default location.

many thanks
> --
> You received this message because you are subscribed to a topic in the Google Groups "Video DownloadHelper Q&A" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/topic/video-downloadhelper-q-and-a/g-zJio9OpAA/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to video-downloadhelper...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/video-downloadhelper-q-and-a/2f42db17-e7ae-4b5a-924e-1692ef2d6703n%40googlegroups.com.

Dreamcat4

unread,
Mar 11, 2021, 12:45:38 PM3/11/21
to Video DownloadHelper Q&A
just a bit further explain. to be more specific:

* on modern systemd linux distros,
* we can convert /tmp to be a tmpfs mount
* using the following 2 systemd commands:

sudo cp -v /usr/share/systemd/tmp.mount /etc/systemd/system/
sudo systemctl enable tmp.mount

* however that ttype of tmp folder is in-memory (like a ramdisk)
* so when downloading any larger sized media files... that will eat
into the main system memory
* which is a problem, if you have limited amount of free ram
* which occurs often, when you have the habit many open browser tabs

given the type of media files these are (video). it's better to write
them to HDD instead.
hope that makes sense!

and we don't want to HDD all of /tmp because mixed together in that
same folder it then slows down all the other SMALL temp files
therefore if you add this feature please let me know, and then i can
improve / fix my system configuration

thanks

mig

unread,
Mar 11, 2021, 1:11:24 PM3/11/21
to Video DownloadHelper Q&A
You are absolutely right.

However, we (VDH) do not choose (nor want to) the temporary directory. We rely on a very popular node library to make the pick for us. This library is available from https://github.com/raszi/node-tmp

If you think the temporary directory should be chosen differently then you should make your point there as it wouldn't be only a VDH issue but also affects plenty of other projects. Just keep in mind the node-tmp project has over 600 stars on github and over 22 million downloads per week, so make sure you build a strong case :)

Dreamcat4

unread,
Mar 11, 2021, 5:41:30 PM3/11/21
to mig, Video DownloadHelper Q&A
if only you could use github or gitlab issues tracker (instead of
google groups). Then i could just cross reference this issue in your
repo with a new issue in other node library repo. oh wel.

please try to open an issue yourself if you can. you are welcome to
copy / paste any text from here. unfortunately it didnt work out for
me. and i dont know how to ask (btechnical matters) pertaining to that
specific node js library api. being unfamiliar with it or any other
node js ecosystem.


many thanks
> To view this discussion on the web visit https://groups.google.com/d/msgid/video-downloadhelper-q-and-a/5e44f0a9-d1ef-41e7-9881-dc226696bd0fn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages