X
Tap here to go to the mobile version of the site.

Support Forum

How to change directory where files are placed for other applications to access?

Posted

Running ESR on Centos (RedHat) 5 & 6. Because of the way my system is set up, I would like to change where Firefox places files when they need to be accessed by another application (e.g. a .doc file). The default is to place them in /tmp, which works for most people, but does not work in my particular installation. (Some of the programs I use to read certain files are actually on a different computer, but can be started automatically from the computer I am browsing on). I need to place these files on a network directory, so the other computer can see them.

I looked in about:config, but do not find anything pointing to /tmp. I am hoping that this is one of those "add a new line to about:config" things that are assumed (based on OS), but can be changed if needed.

Thanks, Ted Miller

Running ESR on Centos (RedHat) 5 & 6. Because of the way my system is set up, I would like to change where Firefox places files when they need to be accessed by another application (e.g. a .doc file). The default is to place them in /tmp, which works for most people, but does not work in my particular installation. (Some of the programs I use to read certain files are actually on a different computer, but can be started automatically from the computer I am browsing on). I need to place these files on a network directory, so the other computer can see them. I looked in about:config, but do not find anything pointing to /tmp. I am hoping that this is one of those "add a new line to about:config" things that are assumed (based on OS), but can be changed if needed. Thanks, Ted Miller

Chosen solution

You can probably only do this by changing the TMPDIR=/tmp environment variable to point to that network drive.
You can start Firefox via a script file if you do ont want to do this for all applications.

#!/bin/sh

export TMPDIR=<path to tmp directory>
cd <path to Firefox>
./firefox
Read this answer in context 1
cor-el
  • Top 10 Contributor
  • Moderator
13070 solutions 119681 answers

Chosen Solution

You can probably only do this by changing the TMPDIR=/tmp environment variable to point to that network drive.
You can start Firefox via a script file if you do ont want to do this for all applications.

#!/bin/sh

export TMPDIR=<path to tmp directory>
cd <path to Firefox>
./firefox
You can probably only do this by changing the TMPDIR=/tmp environment variable to point to that network drive.<br /> You can start Firefox via a script file if you do ont want to do this for all applications. <br /> <pre><nowiki>#!/bin/sh export TMPDIR=<path to tmp directory> cd <path to Firefox> ./firefox </nowiki></pre>

Helpful Reply

Thanks cor-el. Can manage that easily, per your shell example. Ted Miller

Thanks cor-el. Can manage that easily, per your shell example. Ted Miller