From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: unwelcome tmp and ltxpng directories in my home Date: Thu, 03 Jul 2014 11:55:35 -0400 Message-ID: <87wqbu1loo.fsf@alphaville.bos.redhat.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43942) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X2jMr-0007il-DK for emacs-orgmode@gnu.org; Thu, 03 Jul 2014 11:56:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X2jMi-0004sA-CI for emacs-orgmode@gnu.org; Thu, 03 Jul 2014 11:56:13 -0400 Received: from plane.gmane.org ([80.91.229.3]:38119) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X2jMi-0004s6-59 for emacs-orgmode@gnu.org; Thu, 03 Jul 2014 11:56:04 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1X2jMX-0001ve-Sm for emacs-orgmode@gnu.org; Thu, 03 Jul 2014 17:55:53 +0200 Received: from nat-pool-bos-t.redhat.com ([66.187.233.206]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 03 Jul 2014 17:55:53 +0200 Received: from ndokos by nat-pool-bos-t.redhat.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 03 Jul 2014 17:55:53 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Joseph Vidal-Rosset writes: > Hello, > > My O.S. is Debian GNU/Linux  testing version.  My desktop is mainly xfce (or openbox). > > In Gnus when I create png image via M-x org-preview-latex-fragment and after having M-x org-mime-htmlize  the png image is > created in  /home/joseph/ltxpng directory and not in /ltxpng  directory. That's why when I try to send my message, I have an > error message saying to me that the png image is not in ltxpng directory... of course, it is created not in the /tmp/ltxpng   but > in /home/joseph/tmp/lxpng .... > > These unwelcome tmp  and ltxpng directories are created automatically in my home and I do not know why. > > I suspect a problem in my setup and not in org-mode, that is why I apologize is this email is irrelevant in this list. But maybe > some Debian expert will be able to help me. > When you do org-preview-latex-fragment, a ltxpng subdirectory is created under the directory that contains the org file. So if you have /home/joseph/foo.org and you preview it, you are going to get /home/joseph/ltxpng as a subdirectory. That is controlled by the setting of org-latex-preview-ltxpng-directory however: ,---- | org-latex-preview-ltxpng-directory is a variable defined in `org.el'. | Its value is "ltxpng/" | | Documentation: | Path to store latex preview images. | A relative path here creates many directories relative to the | processed org files paths. An absolute path puts all preview | images at the same place. `---- So you could customize it to store all the png files into /tmp/ltxpng e.g. No idea where the tmp/ directory comes from, but I don't think it's from the preview. Nick