emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] bug#14605: Problem with export an .org file to .pdf does not ope


From: Suvayu Ali
Subject: Re: [O] bug#14605: Problem with export an .org file to .pdf does not open pdf file
Date: Fri, 20 Sep 2013 13:07:41 +0200
User-agent: Mutt/1.5.21 (2012-12-30)

Hi Carsten,

On Fri, Sep 20, 2013 at 12:49:43PM +0200, Carsten Dominik wrote:
> 
> On Sep 19, 2013, at 4:25 PM, Suvayu Ali <address@hidden> wrote:
> 
> > I have some good news (sort of).  We can force generic open by calling
> > xdg-open like this[1]:
> > 
> >  DE=generic xdg-open /path/to/file
> 
> Hi Suvayu,
> 
> interesting!  How does this work?  Is this setting an environment variable DE 
> before it is run?
> The syntax looks unfamiliar to me.

Yes, it is setting the DE variable (internal to xdg-open) to generic.
You can temporarily alter the environment of a command by prefixing it
with `var=value '.  The cool thing is the current shell does not retain
the temporary value.  Here is an example:

  $ var=foo
  $ var=bar sh -c 'echo $var'
  bar
  $ echo $var
  foo

:)

-- 
Suvayu

Open source is the future. It sets us free.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]