[opensuse] Changing users temp folder
Hi, I was wondering if its possible to change the users temp folder location from /tmp to ~/tmp ? When I was using mandriva I was used to having my tmp folder within my home directory. This way when I download a file which happens to be a pdf and gets opened by an other application like kpdf, the file gets stored in my ~/tmp folder than the systems tmp folder. This is advantages for the user to just go to their home/tmp folder to save any files they download to an other location rather than navigating back to the root of the file system to fetch the document from /tmp I don't know what dis-advantages it would have by being in the users home directory. On the other hand having it store the temp files under /tmp is a privacy issue I would think. Jeffery -- Powered by openSUSE 10.2 (i586) Kernel: 2.6.18.2-34-default KDE: 3.5.5 "release 45" 12:51pm up 2 days 19:36, 3 users, load average: 0.50, 0.37, 0.27
Jeffery Fernandez wrote:
Hi,
I was wondering if its possible to change the users temp folder location from /tmp to ~/tmp ?
When I was using mandriva I was used to having my tmp folder within my home directory. This way when I download a file which happens to be a pdf and gets opened by an other application like kpdf, the file gets stored in my ~/tmp folder than the systems tmp folder.
This is advantages for the user to just go to their home/tmp folder to save any files they download to an other location rather than navigating back to the root of the file system to fetch the document from /tmp
I don't know what dis-advantages it would have by being in the users home directory. On the other hand having it store the temp files under /tmp is a privacy issue I would think.
You have the choice of specifying where all your downloads should go when a download is initiated. I created a directory called Downloads in my ~/home and everything I download goes there. Cannot see why you can't do the same. Cheers. -- In a period of great joy and pleasure you are comforted by the thought that tragedy is just around the corner. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Basil Chupin wrote:
Jeffery Fernandez wrote:
-snip- When I was using mandriva I was used to having my tmp folder within my home directory. This way when I download a file which happens to be a pdf and gets opened by an other application like kpdf, the file gets stored in my ~/tmp folder than the systems tmp folder. -snip-
You have the choice of specifying where all your downloads should go when a download is initiated. I created a directory called Downloads in my ~/home and everything I download goes there. Cannot see why you can't do the same.
Cheers.
I think he means, when clicking a link in a browser he gets the option to open it with "application X", or download the file. If he opens with "application X", the file will be downloaded to /tmp, and opened by the application in question. Best regards Sylvester Lykkehus
On Sunday 31 December 2006 13:24, Sylvester Lykkehus wrote:
Basil Chupin wrote:
Jeffery Fernandez wrote:
-snip- When I was using mandriva I was used to having my tmp folder within my home directory. This way when I download a file which happens to be a pdf and gets opened by an other application like kpdf, the file gets stored in my ~/tmp folder than the systems tmp folder. -snip-
You have the choice of specifying where all your downloads should go when a download is initiated. I created a directory called Downloads in my ~/home and everything I download goes there. Cannot see why you can't do the same.
Cheers.
I think he means, when clicking a link in a browser he gets the option to open it with "application X", or download the file. If he opens with "application X", the file will be downloaded to /tmp, and opened by the application in question.
thats exactly what I meant.
Best regards Sylvester Lykkehus
-- Powered by openSUSE 10.2 (i586) Kernel: 2.6.18.2-34-default KDE: 3.5.5 "release 45" 1:30pm up 2 days 20:16, 3 users, load average: 0.16, 0.60, 0.61
Jeffery Fernandez wrote:
On Sunday 31 December 2006 13:24, Sylvester Lykkehus wrote:
Basil Chupin wrote:
Jeffery Fernandez wrote:
-snip- When I was using mandriva I was used to having my tmp folder within my home directory. This way when I download a file which happens to be a pdf and gets opened by an other application like kpdf, the file gets stored in my ~/tmp folder than the systems tmp folder. -snip- You have the choice of specifying where all your downloads should go when a download is initiated. I created a directory called Downloads in my ~/home and everything I download goes there. Cannot see why you can't do the same.
Cheers. I think he means, when clicking a link in a browser he gets the option to open it with "application X", or download the file. If he opens with "application X", the file will be downloaded to /tmp, and opened by the application in question.
thats exactly what I meant.
It might help if you divulged which OS you are now using and which browser you are using. As far as I know browsers usually use a cache where everything you see on your screen is first placed and then, if you decide to download it, then it is downloaded to the directory you had specified when setting up the browser. Firefox for example puts everything into a cache (which is in your ~/home); so does konqueror - if you select that it uses a cache. So, which browser are you talking about here? Cheers. -- In a period of great joy and pleasure you are comforted by the thought that tragedy is just around the corner. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sunday 31 December 2006 14:43, Basil Chupin wrote:
Jeffery Fernandez wrote:
On Sunday 31 December 2006 13:24, Sylvester Lykkehus wrote:
Basil Chupin wrote:
Jeffery Fernandez wrote:
-snip- When I was using mandriva I was used to having my tmp folder within my home directory. This way when I download a file which happens to be a pdf and gets opened by an other application like kpdf, the file gets stored in my ~/tmp folder than the systems tmp folder. -snip-
It might help if you divulged which OS you are now using and which browser you are using.
As far as I know browsers usually use a cache where everything you see on your screen is first placed and then, if you decide to download it, then it is downloaded to the directory you had specified when setting up the browser.
Firefox for example puts everything into a cache (which is in your ~/home); so does konqueror - if you select that it uses a cache.
So, which browser are you talking about here?
Hi Basil, I am using OpenSuse 10.2 and I am talking about both firefox and konqueror Jeffery -- Powered by openSUSE 10.2 (i586) Kernel: 2.6.18.2-34-default KDE: 3.5.5 "release 45" 2:47pm up 2 days 21:32, 4 users, load average: 0.22, 0.25, 0.26
Jeffery Fernandez wrote:
On Sunday 31 December 2006 14:43, Basil Chupin wrote:
Jeffery Fernandez wrote:
On Sunday 31 December 2006 13:24, Sylvester Lykkehus wrote:
Basil Chupin wrote:
Jeffery Fernandez wrote:
-snip- When I was using mandriva I was used to having my tmp folder within my home directory. This way when I download a file which happens to be a pdf and gets opened by an other application like kpdf, the file gets stored in my ~/tmp folder than the systems tmp folder. -snip- It might help if you divulged which OS you are now using and which browser you are using.
As far as I know browsers usually use a cache where everything you see on your screen is first placed and then, if you decide to download it, then it is downloaded to the directory you had specified when setting up the browser.
Firefox for example puts everything into a cache (which is in your ~/home); so does konqueror - if you select that it uses a cache.
So, which browser are you talking about here?
Hi Basil,
I am using OpenSuse 10.2 and I am talking about both firefox and konqueror
So why didn't you say so in the first place? :-) . Everything FF 'sees' goes into ~/home/<your-login-name>/.mozilla/firefox/xxxxx.default/Cache. If you want to save anything using FF then you specify a specific directory otherwise it gets saved by default in your ~/home/<your-login-name> directory. To specify which directory to use to save downloads, create a directory in your /home/<your-login-name> directory - as I mentioned, mine is 'Downloads' - then Edit/Preferences/Main/Downloads and select the directory you just created. If you are viewing a PDF file then when you go to save it a menu 'pops up' asking you where you want to save the PDF file - and you will point it at the directory you just created above. I don't use konqueror so cannot give equivalent steps to FF but I suspect from the *very* quick I gave it that there would be similarities between them (although I cannot imagine why you would want to use konqueror when there is FF :-) ). Cheers. -- In a period of great joy and pleasure you are comforted by the thought that tragedy is just around the corner. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sunday 31 December 2006 15:32, Basil Chupin wrote:
Jeffery Fernandez wrote:
On Sunday 31 December 2006 14:43, Basil Chupin wrote:
Jeffery Fernandez wrote:
On Sunday 31 December 2006 13:24, Sylvester Lykkehus wrote:
Basil Chupin wrote:
Jeffery Fernandez wrote: > -snip- > When I was using mandriva I was used to having my tmp folder within > my home directory. This way when I download a file which happens to > be a pdf and gets opened by an other application like kpdf, the file > gets stored in my ~/tmp folder than the systems tmp folder. > -snip-
It might help if you divulged which OS you are now using and which browser you are using.
As far as I know browsers usually use a cache where everything you see on your screen is first placed and then, if you decide to download it, then it is downloaded to the directory you had specified when setting up the browser.
Firefox for example puts everything into a cache (which is in your ~/home); so does konqueror - if you select that it uses a cache.
So, which browser are you talking about here?
Hi Basil,
I am using OpenSuse 10.2 and I am talking about both firefox and konqueror
So why didn't you say so in the first place? :-) .
I thought it obvious that the details of what OS I run was displayed in my signature. :P
Everything FF 'sees' goes into ~/home/<your-login-name>/.mozilla/firefox/xxxxx.default/Cache.
If you want to save anything using FF then you specify a specific directory otherwise it gets saved by default in your ~/home/<your-login-name> directory.
To specify which directory to use to save downloads, create a directory in your /home/<your-login-name> directory - as I mentioned, mine is 'Downloads' - then Edit/Preferences/Main/Downloads and select the directory you just created.
If you are viewing a PDF file then when you go to save it a menu 'pops up' asking you where you want to save the PDF file - and you will point it at the directory you just created above.
I don't use konqueror so cannot give equivalent steps to FF but I suspect from the *very* quick I gave it that there would be similarities between them (although I cannot imagine why you would want to use konqueror when there is FF :-) ).
I think you haven't understood what I am after. Please read Sylvester's reply above. Jeffery -- Powered by openSUSE 10.2 (i586) Kernel: 2.6.18.2-34-default KDE: 3.5.5 "release 45" 3:50pm up 2 days 22:36, 4 users, load average: 0.45, 0.70, 0.78
Jeffery Fernandez wrote: [pruned]
I think you haven't understood what I am after. Please read Sylvester's reply above.
Without turning this into a pedantic saga, here is what you originally wrote: QUOTE This way when I download a file which happens to be a pdf and gets opened by an other application like kpdf, the file gets stored in my ~/tmp folder than the systems tmp folder. UNQUOTE "When I download a file" -- how can you download a file unless you (1) either use a browser, eg Firefox, or (2) use something like gftp (wget or whatever) to download it? In either case you have control over the location on your HD where that file will be *finally* downloaded - bearing in mind what I said earlier about data always being initially cached. If you don't specify a target directory then, of course, it will go to some default directory which, in the case of Firefox, will (probably) be ~/home/<your-login-name>. Once that file is on your HD you can open it with whatever application your heart takes a fancy to - but the file will *still* be located in the directory which *you* specified it should be downloaded to. I read what Sylvester wrote, to which you then agreed, but it did not follow what you originally wrote - see above. However, while browsing if you do see a pdf file and decide to view it then you would need to have first set the *file associations* in both Firefox and konqueror (as far as I can tell). Have you looked at this setting in FF (Edit/Preferences/Content/File Types)? Or in konqueror (Settings/Configure Konqueror/File Associations)? In FF if you try and, say, view a pdf file for the first time and the pdf has not yet been dealt with in File Types then FF will ask you what you want to do with this (new) pdf file- there is a menu which appears giving you options. Again, here you have control over the fate of this pdf document. But the basic point is that you have control over where any file goes when it is downloaded. Cheers. -- In a period of great joy and pleasure you are comforted by the thought that tragedy is just around the corner. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Sunday 2006-12-31 at 18:12 +1100, Basil Chupin wrote:
However, while browsing if you do see a pdf file and decide to view it then you would need to have first set the *file associations* in both Firefox and konqueror (as far as I can tell). Have you looked at this setting in FF (Edit/Preferences/Content/File Types)? Or in konqueror (Settings/Configure Konqueror/File Associations)?
In FF if you try and, say, view a pdf file for the first time and the pdf has not yet been dealt with in File Types then FF will ask you what you want to do with this (new) pdf file- there is a menu which appears giving you options. Again, here you have control over the fate of this pdf document.
Not exactly, not completely. When you click on a pdf file or any other file type the browser (which ever browser) knows how to handle, it offers to open or download it. If you choose open (or if have set the browser to always open, don't ask), before opening it, it will be downloaded somewhere, and the browser (mozillla, for instance) does not ask where that temporary download will go; what I have seen is that it goes to a random named file somewhere under /tmp. The OP is asking how to change that destination to be somewhere under his home folder instead. - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFFl7O+tTMYHG2NR9URAvUhAJwLOcHvLo27QpZnGJe1tHjX5/kJzACglzMf TWOr9dtC85BwwGP5Qqo5VQY= =g60x -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Carlos E. R. wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
The Sunday 2006-12-31 at 18:12 +1100, Basil Chupin wrote:
However, while browsing if you do see a pdf file and decide to view it then you would need to have first set the *file associations* in both Firefox and konqueror (as far as I can tell). Have you looked at this setting in FF (Edit/Preferences/Content/File Types)? Or in konqueror (Settings/Configure Konqueror/File Associations)?
In FF if you try and, say, view a pdf file for the first time and the pdf has not yet been dealt with in File Types then FF will ask you what you want to do with this (new) pdf file- there is a menu which appears giving you options. Again, here you have control over the fate of this pdf document.
Not exactly, not completely. When you click on a pdf file or any other file type the browser (which ever browser) knows how to handle, it offers to open or download it. If you choose open (or if have set the browser to always open, don't ask), before opening it, it will be downloaded somewhere, and the browser (mozillla, for instance) does not ask where that temporary download will go; what I have seen is that it goes to a random named file somewhere under /tmp.
In Firefox - which is the, or one of the, browsers under discussion the default place where files are downloaded to if nothing is deliberately set is the Desktop. Check it out for yourself. If you do NOT have any file associations set in FF and you come across a pdf file *for the first time* and click on it, FF will give you a menu where you have a choice of what to do with that pdf file. If you simply choose to download it then FF will do this: - if you have set a download directory for *any* downloads (Edit/Preferences/Downloads) then this pdf file - which WILL have a specific name, and not a random name as you mention above - will be downloaded into the set download directory; - if you do NOT have a set download directory then FF will download the file to the default destination which is Desktop.
The OP is asking how to change that destination to be somewhere under his home folder instead.
All one has to do is set the damn destination in Preferences in FF! :-) . Cheers. -- In a period of great joy and pleasure you are comforted by the thought that tragedy is just around the corner. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Monday 2007-01-01 at 01:08 +1100, Basil Chupin wrote:
In Firefox - which is the, or one of the, browsers under discussion the default place where files are downloaded to if nothing is deliberately set is the Desktop. Check it out for yourself.
If you do NOT have any file associations set in FF and you come across a pdf file *for the first time* and click on it, FF will give you a menu where you have a choice of what to do with that pdf file. If you simply choose to download it then FF will do this:
No, we choose to open.
- if you have set a download directory for *any* downloads (Edit/Preferences/Downloads) then this pdf file - which WILL have a specific name, and not a random name as you mention above - will be downloaded into the set download directory;
The OP is not talking about file downloads, even if he mistakenly said so at first. Nor am I. We are both talking about opening a file from inside the browser, clicking on it. He confirmed this later. Just try to _open_ a pdf file. It will be downloaded to somewhere first behind the scenes, and you will not be asked where. But if you check, you will see that it is somewhere in /tmp - regardless of where downloaded files normally go (you see that if you select "save" from inside acrobat when the file is finally displayed). The _open_ function is different, in theory they are deleted right after.
- if you do NOT have a set download directory then FF will download the file to the default destination which is Desktop.
The OP is asking how to change that destination to be somewhere under his home folder instead.
All one has to do is set the damn destination in Preferences in FF! :-) .
No, that does not work for OPEN. - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFFl9kWtTMYHG2NR9URArGoAJ0RJ7Z/LyNeNFHxWKnvcdmYnPrXtgCfeje2 Xm47FOs7cs8fOIgQh8xtTq8= =f3MS -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Carlos E. R. wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
The Monday 2007-01-01 at 01:08 +1100, Basil Chupin wrote:
In Firefox - which is the, or one of the, browsers under discussion the default place where files are downloaded to if nothing is deliberately set is the Desktop. Check it out for yourself.
If you do NOT have any file associations set in FF and you come across a pdf file *for the first time* and click on it, FF will give you a menu where you have a choice of what to do with that pdf file. If you simply choose to download it then FF will do this:
No, we choose to open.
- if you have set a download directory for *any* downloads (Edit/Preferences/Downloads) then this pdf file - which WILL have a specific name, and not a random name as you mention above - will be downloaded into the set download directory;
The OP is not talking about file downloads, even if he mistakenly said so at first. Nor am I. We are both talking about opening a file from inside the browser, clicking on it. He confirmed this later.
Just try to _open_ a pdf file. It will be downloaded to somewhere first behind the scenes, and you will not be asked where. But if you check, you will see that it is somewhere in /tmp - regardless of where downloaded files normally go (you see that if you select "save" from inside acrobat when the file is finally displayed). The _open_ function is different, in theory they are deleted right after.
- if you do NOT have a set download directory then FF will download the file to the default destination which is Desktop.
The OP is asking how to change that destination to be somewhere under his home folder instead. All one has to do is set the damn destination in Preferences in FF! :-) .
No, that does not work for OPEN.
OK, I've "un-preferenced" my Firefox back to its dreary basic self :-) and tested on a pdf file and I see what you mean by the pdf file going into /tmp when simply viewed by Acroread (but why one would view a pdf file and not save it on the spot but rather go thru the convoluted process of saving it LATER is beyond me - but I wont argue :-) ; seems to me it makes more sense to save it first and if you don't want it then delete it.). Further, this file has been sitting in /tmp for some 22+ hours now and hasn't (quickly) disappeared as was suggested that it would. Also, as I mentioned, this pdf file - as everything FF "sees" on the 'net - is sitting in the FF Cache so there are actually 2 copies of this same pdf file sitting on the HD although the file name in the Cache is not the same. However, if you use konqueror and look inside the Cache, konqueror identifies all the files there by their type - ie, it identifies files as pdfs, HTMLs, gifs, jpgs, etc etc. so it was/is easy to find and copy the pdf file I was playing around whereever I wanted. And because I have made my Cache big (200MB) it will be for some days yet. Cheers. -- In a period of great joy and pleasure you are comforted by the thought that tragedy is just around the corner. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Tuesday 2007-01-02 at 23:14 +1100, Basil Chupin wrote: ...
OK, I've "un-preferenced" my Firefox back to its dreary basic self :-) and tested on a pdf file and I see what you mean by the pdf file going into /tmp when simply viewed by Acroread (but why one would view a pdf file and not save it on the spot but rather go thru the convoluted process of saving it LATER is beyond me - but I wont argue :-) ;
Fingers are sometimes faster than the mind, you know ;-) Dunno. Sometimes I do one way, others the other way. I'm not that consistent.
seems to me it makes more sense to save it first and if you don't want it then delete it.).
Further, this file has been sitting in /tmp for some 22+ hours now and hasn't (quickly) disappeared as was suggested that it would.
I thought it would, but maybe not. Maybe it has to be purged by the /tmp system purge script, which by default deletes after 180 days.
Also, as I mentioned, this pdf file - as everything FF "sees" on the 'net - is sitting in the FF Cache so there are actually 2 copies of this same pdf file sitting on the HD although the file name in the Cache is not the same.
What? :-O Are you positive of that? Seems a bug to me. Why would they do it that way? Maybe the cache is the copy for FF, the other one is for the plugin. I've no idea.
However, if you use konqueror and look inside the Cache, konqueror identifies all the files there by their type - ie, it identifies files as pdfs, HTMLs, gifs, jpgs, etc etc. so it was/is easy to find and copy the pdf file I was playing around whereever I wanted. And because I have made my Cache big (200MB) it will be for some days yet.
Yes, sometimes I look in there, using command line "file" to find a file that right-click refuses to download, like google map tiles ;-) I knew that conqueror has that ability, just it didn't occur to me using it.
Cheers.
- -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFFmpFftTMYHG2NR9URAr9aAJsFFpOKAIgbHQ85PbfhVyyzkIdBGQCfb3EV KNUMbIz+NnU/WcYI7N0UlHE= =Kf1d -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Carlos E. R. wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
The Tuesday 2007-01-02 at 23:14 +1100, Basil Chupin wrote:
[pruned]
Also, as I mentioned, this pdf file - as everything FF "sees" on the 'net - is sitting in the FF Cache so there are actually 2 copies of this same pdf file sitting on the HD although the file name in the Cache is not the same.
What? :-O
Are you positive of that?
Would I lie to you? :-) Yes, I am more than positive about this.
Seems a bug to me. Why would they do it that way? Maybe the cache is the copy for FF, the other one is for the plugin. I've no idea.
We are talking about FF so, yes, as I said, every that FF "sees" goes into the Cache - and if the Cache is large enough it will stay in the Cache for quite some time but if the Cache is small (default size, say) then the Cache purges itself when limit is reached and FIFO kicks in with the file being archived within the Cache itself. All this leads to the issue of Privacy. Because everything FF "sees" goes to the Cache then if you don't want people to see what you have been up to and viewing then you should delete the contents of Cache - deleting Cache itself will do it because Cache is created again when FF is next started. There is a setting in FF to empty the Cache at specified intervals. BTW, clearing/deleting Cache is often the way out if FF begins to misbehave (because the Cache may contain a corrupted script file from a site and this keeps breaking FF when you go to the site, eg).
However, if you use konqueror and look inside the Cache, konqueror identifies all the files there by their type - ie, it identifies files as pdfs, HTMLs, gifs, jpgs, etc etc. so it was/is easy to find and copy the pdf file I was playing around whereever I wanted. And because I have made my Cache big (200MB) it will be for some days yet.
Yes, sometimes I look in there, using command line "file" to find a file that right-click refuses to download, like google map tiles ;-)
I knew that conqueror has that ability, just it didn't occur to me using it.
I never liked konqueror but am now becoming a bit accustomed to it because it has such useful features like identifying files in the Cache. Cheers. -- In a period of great joy and pleasure you are comforted by the thought that tragedy is just around the corner. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sunday 31 December 2006 04:57, Carlos E. R. wrote:
...
Not exactly, not completely. When you click on a pdf file or any other file type the browser (which ever browser) knows how to handle, it offers to open or download it. If you choose open (or if have set the browser to always open, don't ask), before opening it, it will be downloaded somewhere, and the browser (mozillla, for instance) does not ask where that temporary download will go; what I have seen is that it goes to a random named file somewhere under /tmp.
I know this is a bit of a tangent, but I'll mention it because I think it's so useful. There is a Firefox plug-in named "PDF Download" which gives you the choice on each PDF file accessed to download it or view it in-browsers (assuming the Adobe Reader / Acrobat plug-in is installed). It can also perform an HTML conversion for in-browser viewing if you don't have the plug-in. Most of the time, I don't want to view PDFs in the browser, but I also don't want to mess with the system-level installation of the PDF plug-in. You can find it via the Firefox Extensions download service.
...
-- Cheers, Carlos E. R.
Randall Schulz -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Saturday 30 December 2006 17:58, Jeffery Fernandez wrote:
Hi,
I was wondering if its possible to change the users temp folder location from /tmp to ~/tmp ?
When I was using mandriva I was used to having my tmp folder within my home directory. This way when I download a file which happens to be a pdf and gets opened by an other application like kpdf, the file gets stored in my ~/tmp folder than the systems tmp folder.
This is advantages for the user to just go to their home/tmp folder to save any files they download to an other location rather than navigating back to the root of the file system to fetch the document from /tmp
I don't know what dis-advantages it would have by being in the users home directory. On the other hand having it store the temp files under /tmp is a privacy issue I would think.
Jeffery
set the ENV variable to be: TMPDIR=~/tmp In looking at my env, it shows: TMPDIR=/tmp I have not tested it so YMMV. Mike -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sunday 31 December 2006 13:25, Mike Noble wrote:
On Saturday 30 December 2006 17:58, Jeffery Fernandez wrote:
Hi,
I was wondering if its possible to change the users temp folder location from /tmp to ~/tmp ?
When I was using mandriva I was used to having my tmp folder within my home directory. This way when I download a file which happens to be a pdf and gets opened by an other application like kpdf, the file gets stored in my ~/tmp folder than the systems tmp folder.
This is advantages for the user to just go to their home/tmp folder to save any files they download to an other location rather than navigating back to the root of the file system to fetch the document from /tmp
I don't know what dis-advantages it would have by being in the users home directory. On the other hand having it store the temp files under /tmp is a privacy issue I would think.
Jeffery
set the ENV variable to be:
TMPDIR=~/tmp
In looking at my env, it shows:
TMPDIR=/tmp
I have not tested it so YMMV.
Mike
nope that doesn't work for me :( -- Powered by openSUSE 10.2 (i586) Kernel: 2.6.18.2-34-default KDE: 3.5.5 "release 45" 1:38pm up 2 days 20:23, 3 users, load average: 0.23, 0.38, 0.49
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Sunday 2006-12-31 at 13:38 +1100, Jeffery Fernandez wrote:
set the ENV variable to be:
TMPDIR=~/tmp
In looking at my env, it shows:
TMPDIR=/tmp
I have not tested it so YMMV.
nope that doesn't work for me :(
You should need to re-login after the change. Obviusly, you need to do that change in some file that is used by the login process. - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFFl7RjtTMYHG2NR9URAr9GAJ46NV0QDnmx8f66a/YdcaUi2KCoNwCaAp1T wgrybsCybXRtchGYUdFoTWs= =t79e -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Monday 01 January 2007 00:00, Carlos E. R. wrote:
The Sunday 2006-12-31 at 13:38 +1100, Jeffery Fernandez wrote:
set the ENV variable to be:
TMPDIR=~/tmp
In looking at my env, it shows:
TMPDIR=/tmp
I have not tested it so YMMV.
nope that doesn't work for me :(
You should need to re-login after the change. Obviusly, you need to do that change in some file that is used by the login process.
I tried changing the environment on shell and tested it and it didn't work. To change the environment on login, where (which file) do make the environment change ? cheers, Jeffery -- Powered by openSUSE 10.2 (i586) Kernel: 2.6.18.2-34-default KDE: 3.5.5 "release 45" 9:31am up 3 days 16:17, 8 users, load average: 0.34, 1.35, 0.95
On Sunday 31 December 2006 14:32, Jeffery Fernandez wrote:
On Monday 01 January 2007 00:00, Carlos E. R. wrote:
The Sunday 2006-12-31 at 13:38 +1100, Jeffery Fernandez wrote:
set the ENV variable to be:
TMPDIR=~/tmp
In looking at my env, it shows:
TMPDIR=/tmp
I have not tested it so YMMV.
nope that doesn't work for me :(
You should need to re-login after the change. Obviusly, you need to do that change in some file that is used by the login process.
I tried changing the environment on shell and tested it and it didn't work. To change the environment on login, where (which file) do make the environment change ?
cheers, Jeffery
~/.bashrc Mike -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Mike Noble wrote:
On Sunday 31 December 2006 14:32, Jeffery Fernandez wrote:
On Monday 01 January 2007 00:00, Carlos E. R. wrote:
The Sunday 2006-12-31 at 13:38 +1100, Jeffery Fernandez wrote:
set the ENV variable to be:
TMPDIR=~/tmp
In looking at my env, it shows:
TMPDIR=/tmp
I have not tested it so YMMV.
nope that doesn't work for me :(
You should need to re-login after the change. Obviusly, you need to do that change in some file that is used by the login process.
I tried changing the environment on shell and tested it and it didn't work. To change the environment on login, where (which file) do make the environment change ?
~/.bashrc
TMPDIR=~/tmp export TMPDIR Put this in /etc/bash.bashrc.local and it will work for all users. When this file doesn't exists: touch /etc/bash.bashrc.local -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Monday 2007-01-01 at 17:53 +0100, Marcel de Reuver wrote:
To change the environment on login, where (which file) do make the environment change ?
~/.bashrc
TMPDIR=~/tmp export TMPDIR
Put this in /etc/bash.bashrc.local and it will work for all users. When this file doesn't exists: touch /etc/bash.bashrc.local
Or "/etc/profile.local". - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFFmWFmtTMYHG2NR9URAqmPAJ0YbIRQ6vdC8o8hUzQzdm1BTchWbACghyIk 7XDyfGPbUI3F8FWSuoCN2jo= =O+Qw -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Monday, January 01, 2007 @ 1:31 PM, Carlos E. R. wrote:
The Monday 2007-01-01 at 17:53 +0100, Marcel de Reuver wrote:
To change the environment on login, where (which file) do make the environment change ?
~/.bashrc
TMPDIR=~/tmp export TMPDIR
Put this in /etc/bash.bashrc.local and it will work for all users. When this file doesn't exists: touch /etc/bash.bashrc.local
Or "/etc/profile.local".
- -- Cheers, Carlos E. R.
I thought I read in an earlier thread that profile.local no loner ran at login. Was I mistaken? (I haven't yet gotten around to installing 10.2, though I got the boxed set the day after Christmas. Working toward getting to it shortly). Greg W. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Monday 01 January 2007 21:17, Greg Wallace wrote:
On Monday, January 01, 2007 @ 1:31 PM, Carlos E. R. wrote:
The Monday 2007-01-01 at 17:53 +0100, Marcel de Reuver wrote:
To change the environment on login, where (which file) do make the environment change ?
~/.bashrc
TMPDIR=~/tmp export TMPDIR
Put this in /etc/bash.bashrc.local and it will work for all users. When this file doesn't exists: touch /etc/bash.bashrc.local
Or "/etc/profile.local".
- -- Cheers, Carlos E. R.
I thought I read in an earlier thread that profile.local no loner ran at login. Was I mistaken? (I haven't yet gotten around to installing 10.2, though I got the boxed set the day after Christmas. Working toward getting to it shortly).
Greg W.
Taken from /etc/profile: # PLEASE DO NOT CHANGE /etc/profile. There are chances that your changes # will be lost during system upgrades. Instead use /etc/profile.local for # your local settings, favourite global aliases, VISUAL and EDITOR # variables, etc ... If the file does not exist, then you can create it. This will set variables for every user. If you want to have individual then by the man pages for bash, you should be able to use the following: ~/.bash_login ~/.profile Mike -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Monday 01 January 2007 11:12, Mike Noble wrote:
On Sunday 31 December 2006 14:32, Jeffery Fernandez wrote:
On Monday 01 January 2007 00:00, Carlos E. R. wrote:
The Sunday 2006-12-31 at 13:38 +1100, Jeffery Fernandez wrote:
set the ENV variable to be:
TMPDIR=~/tmp
In looking at my env, it shows:
TMPDIR=/tmp
I have not tested it so YMMV.
nope that doesn't work for me :(
You should need to re-login after the change. Obviusly, you need to do that change in some file that is used by the login process.
I tried changing the environment on shell and tested it and it didn't work. To change the environment on login, where (which file) do make the environment change ?
cheers, Jeffery
~/.bashrc
Mike
Thanks, This works as expected :) cheers, Jeffery -- Powered by openSUSE 10.2 (i586) Kernel: 2.6.18.2-34-default KDE: 3.5.5 "release 45" 6:38pm up 3:41, 8 users, load average: 0.16, 0.11, 0.09
On Monday 01 January 2007 11:12, Mike Noble wrote:
On Sunday 31 December 2006 14:32, Jeffery Fernandez wrote:
On Monday 01 January 2007 00:00, Carlos E. R. wrote:
The Sunday 2006-12-31 at 13:38 +1100, Jeffery Fernandez wrote:
set the ENV variable to be:
TMPDIR=~/tmp
In looking at my env, it shows:
TMPDIR=/tmp
I have not tested it so YMMV.
nope that doesn't work for me :(
You should need to re-login after the change. Obviusly, you need to do that change in some file that is used by the login process.
I tried changing the environment on shell and tested it and it didn't work. To change the environment on login, where (which file) do make
On Tuesday, January 02, 2007 @ 1:39 AM, Jeffery Fernandez wrote: the
environment change ?
cheers, Jeffery
~/.bashrc
Mike
Thanks, This works as expected :)
cheers, Jeffery
Doesn't ~/.bashrc run every time you open a shell? If you only need this to run at login, I believe you would want to put that into ~/.profile. I would have sworn that I read recently that .profile no longer worked in 10.2, but I was just informed by someone else in this thread that it still does work. If so, I THINK that would be a better place to put this logic. Greg Wallace -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Tuesday 02 January 2007 15:00, Greg Wallace wrote:
...
Doesn't ~/.bashrc run every time you open a shell?
The commands contained in ~/.bashrc are executed for every shell invoked unless the "--norc" option is specified. That's true not only for interactive shells but also for shells launched to execute scripts, which is why all my scripts use this shebang line: !#/bin/bash --norc If you don't do this, you really don't know what aliases, variables and shell procedures are defined when your script runs, since the .bashrc read is that of the invoking user.
...
Greg Wallace
Randall Schulz -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Tue, 2007-01-02 at 16:20 -0800, Randall R Schulz wrote:
On Tuesday 02 January 2007 15:00, Greg Wallace wrote:
...
Doesn't ~/.bashrc run every time you open a shell?
The commands contained in ~/.bashrc are executed for every shell invoked unless the "--norc" option is specified. That's true not only for interactive shells but also for shells launched to execute scripts, which is why all my scripts use this shebang line:
!#/bin/bash --norc
I think is should be: #!/bin/bash --norc Which is why it is referred to hash-bang - the hash then the exclamation mark. -- Ken Schneider UNIX since 1989, linux since 1994, SuSE since 1998 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (9)
-
Basil Chupin
-
Carlos E. R.
-
Greg Wallace
-
Jeffery Fernandez
-
Kenneth Schneider
-
Marcel de Reuver
-
Mike Noble
-
Randall R Schulz
-
Sylvester Lykkehus